Could now be compiled without sound support.

This commit is contained in:
johns 2000-08-23 15:42:35 +00:00
parent b02744740b
commit c303e91b91

View file

@ -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?