]> git.mxchange.org Git - quix0rs-blobwars.git/commitdiff
Allow the game to run without sounds.
authorGuus Sliepen <guus@sliepen.eu.org>
Fri, 2 Jul 2010 16:31:58 +0000 (18:31 +0200)
committerGuus Sliepen <guus@sliepen.eu.org>
Fri, 2 Jul 2010 16:31:58 +0000 (18:31 +0200)
Reapplication of commit d290ae9a9b526551f399580c294289be128a1039.

src/mapData.cpp
src/resources.cpp

index dfe8514fb00bb10c337477bb1913c8f3763bcc9c..6b178116f74b9764d8759b275e9e904dcb6b47e2 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);
 }