From c303e91b91480e273ec8884a4e5aff978320551e Mon Sep 17 00:00:00 2001 From: johns <> Date: Wed, 23 Aug 2000 15:42:35 +0000 Subject: [PATCH] Could now be compiled without sound support. --- src/stratagus/spells.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/stratagus/spells.cpp b/src/stratagus/spells.cpp index 540e71df7..ac3eb0a5f 100644 --- a/src/stratagus/spells.cpp +++ b/src/stratagus/spells.cpp @@ -313,8 +313,13 @@ global void InitSpells() while( SpellTypeTable[z].Id != -1 ) { SpellTypeTable[z].Id = z; +#ifdef WITH_SOUND // FIXME: no ifdef orgie //FIXME: vladi: this won't work 'cos sound init is called after InitSpells() SpellTypeTable[z].SoundId = SoundIdForName(SpellTypeTable[z].SoundIdent); +#else + SpellTypeTable[z].SoundId = NULL; +#endif + if( SpellTypeTable[z].SoundId == NULL ) { DebugLevel0Fn( "cannot get SoundId for `%s'\n", SpellTypeTable[z].SoundIdent ); //FIXME: vladi: some log level func instead of printf?