- 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
|
|
@ -112,20 +112,16 @@ static void SkipSubBlock(FScanner &sc)
|
|||
|
||||
static bool CheckSkipGameBlock(FScanner &sc)
|
||||
{
|
||||
int filter = 0;
|
||||
bool filter = false;
|
||||
sc.MustGetStringName("(");
|
||||
do
|
||||
{
|
||||
sc.MustGetString();
|
||||
if (sc.Compare("Doom")) filter |= GAME_Doom;
|
||||
if (sc.Compare("Heretic")) filter |= GAME_Heretic;
|
||||
if (sc.Compare("Hexen")) filter |= GAME_Hexen;
|
||||
if (sc.Compare("Strife")) filter |= GAME_Strife;
|
||||
if (sc.Compare("Chex")) filter |= GAME_Chex;
|
||||
filter |= CheckGame(sc.String, false);
|
||||
}
|
||||
while (sc.CheckString(","));
|
||||
sc.MustGetStringName(")");
|
||||
if (!(gameinfo.gametype & filter))
|
||||
if (!filter)
|
||||
{
|
||||
SkipSubBlock(sc);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue