From d290ae9a9b526551f399580c294289be128a1039 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 23 Dec 2009 14:14:24 +0100 Subject: [PATCH] Allow the game to run without sounds. --- src/mapData.cpp | 3 +-- src/resources.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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); } -- 2.39.5