- 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:
Christoph Oelckers 2010-10-12 07:14:31 +00:00
commit 352a926ddf
13 changed files with 37 additions and 104 deletions

View file

@ -332,31 +332,10 @@ static void ParseOuter (FScanner &sc)
break;
case OUT_IFDOOM:
if (!(gameinfo.gametype & GAME_DoomChex))
{
ifskip = true;
}
break;
case OUT_IFHERETIC:
if (gameinfo.gametype != GAME_Heretic)
{
ifskip = true;
}
break;
case OUT_IFHEXEN:
if (gameinfo.gametype != GAME_Hexen)
{
ifskip = true;
}
break;
case OUT_IFSTRIFE:
if (gameinfo.gametype != GAME_Strife)
{
ifskip = true;
}
ifskip = !CheckGame(sc.String+2, true);
break;
case OUT_ENDIF: