- made all references to the GameNames array an inline function call to allow easier modification later
- changed all parsers that check for the current game to use the same function for the game check. - fixed: The TEAMINFO parser handled 'game Any' incorrectly. SVN r2934 (trunk)
This commit is contained in:
parent
dd17c35d89
commit
352a926ddf
13 changed files with 37 additions and 104 deletions
|
|
@ -1301,31 +1301,10 @@ static void S_AddSNDINFO (int lump)
|
|||
break;
|
||||
|
||||
case SI_IfDoom: //also Chex
|
||||
if (!(gameinfo.gametype & GAME_DoomChex))
|
||||
{
|
||||
skipToEndIf = true;
|
||||
}
|
||||
break;
|
||||
|
||||
case SI_IfStrife:
|
||||
if (gameinfo.gametype != GAME_Strife)
|
||||
{
|
||||
skipToEndIf = true;
|
||||
}
|
||||
break;
|
||||
|
||||
case SI_IfHeretic:
|
||||
if (gameinfo.gametype != GAME_Heretic)
|
||||
{
|
||||
skipToEndIf = true;
|
||||
}
|
||||
break;
|
||||
|
||||
case SI_IfHexen:
|
||||
if (gameinfo.gametype != GAME_Hexen)
|
||||
{
|
||||
skipToEndIf = true;
|
||||
}
|
||||
skipToEndIf = !CheckGame(sc.String+3, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue