]> git.mxchange.org Git - quix0rs-blobwars.git/commitdiff
Allow the game to run without sounds.
authorGuus Sliepen <guus@debian.org>
Wed, 23 Dec 2009 13:14:24 +0000 (14:14 +0100)
committerGuus Sliepen <guus@debian.org>
Wed, 23 Dec 2009 13:14:24 +0000 (14:14 +0100)
src/mapData.cpp
src/resources.cpp

index 1ccef796090f54c7391981263a944c06f4cd97fd..76963632c04ddfe7eb103dc0641990172dcccd96 100644 (file)
@@ -247,8 +247,7 @@ void getMapTokens()
                        else if (strcmp("AMBIENCE", mapEntity) == 0)
                        {
                                sscanf(token, "%*s %*s %s", string[0]);
-                               if (!audio.loadSound(SND_AMBIANCE, string[0]))
-                                       graphics.showErrorAndExit(ERR_FILE, string[0]);
+                               audio.loadSound(SND_AMBIANCE, string[0]);
                        }
                        else if (strcmp("WATERLEVEL", mapEntity) == 0)
                        {
index 51a516a21d728e0c9996b036a95307047fe49290..5308eff6d587fa0057645b092fd925567a7bb106 100644 (file)
@@ -22,8 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 void loadSound(int index, const char *filename)
 {
-       if (!audio.loadSound(index, filename))
-               graphics.showErrorAndExit(ERR_FILE, filename);
+       audio.loadSound(index, filename);
 
        graphics.showLoading(1, 30);
 }