From: Guus Sliepen Date: Wed, 23 Dec 2009 13:14:24 +0000 (+0100) Subject: Allow the game to run without sounds. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d290ae9a9b526551f399580c294289be128a1039;p=quix0rs-blobwars.git Allow the game to run without sounds. --- diff --git a/src/mapData.cpp b/src/mapData.cpp index 1ccef79..7696363 100644 --- a/src/mapData.cpp +++ b/src/mapData.cpp @@ -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) { diff --git a/src/resources.cpp b/src/resources.cpp index 51a516a..5308eff 100644 --- a/src/resources.cpp +++ b/src/resources.cpp @@ -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); }