From ab9debf3fa91f3b36c6739f4affbdc187e78113d Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 13 Mar 2005 01:16:52 +0000 Subject: * Moved Being public char *speech to private std::string speech * Moved Being public PATH_NODE *path to private std::list path * Fixed warping issue which corrupted player (which also applies to respawning) * Got rid of sound error in Setup window --- src/sound.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/sound.cpp') diff --git a/src/sound.cpp b/src/sound.cpp index 20530750..6e2c19fe 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -30,9 +30,8 @@ void Sound::init(int voices, int mod_voices) { - if (isOk == 0) { - throw("Sound engine cannot be initialized twice!\n"); - } + // Don't initialize sound engine twice + if (isOk == 0) return; bgm = NULL; int audio_rate = 44100; -- cgit v1.2.3-70-g09d2