From 790c279d48f2058bfd55906af923eb716bd4bb37 Mon Sep 17 00:00:00 2001 From: John Anthony Date: Wed, 27 Jul 2011 22:45:27 +0100 Subject: Music loading error displayed incorrectly --- nyan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nyan.c b/nyan.c index 7d62eea..f6b06d3 100644 --- a/nyan.c +++ b/nyan.c @@ -395,10 +395,10 @@ load_image( const char* path ) { static void load_music(void) { music = Mix_LoadMUS("res/nyan.ogg"); - if (!music) { + if (!music) music = Mix_LoadMUS("/usr/share/nyancat/nyan.ogg"); + if (!music) printf("Unable to load Ogg file: %s\n", Mix_GetError()); - } } static void -- cgit v1.2.3