- fixed: The GAMEINFO parser needs to use C mode.

SVN r2089 (trunk)
This commit is contained in:
Christoph Oelckers 2010-01-02 23:37:43 +00:00
parent 92b8ac26c0
commit 1c2cc7bd3a
2 changed files with 2 additions and 0 deletions

View file

@ -1,4 +1,5 @@
January 2, 2010 (Changes by Graf Zahl) January 2, 2010 (Changes by Graf Zahl)
- fixed: The GAMEINFO parser needs to use C mode.
- fixed: Polyobjects could contain segs that weren't flagged as such. - fixed: Polyobjects could contain segs that weren't flagged as such.
- fixed: Trying to show a popup crashed in the SBARINFO code because of a - fixed: Trying to show a popup crashed in the SBARINFO code because of a
missing NULL pointer check. missing NULL pointer check.

View file

@ -1642,6 +1642,7 @@ static FString ParseGameInfo(TArray<FString> &pwads, const char *fn, const char
const char *lastSlash = strrchr (fn, '/'); const char *lastSlash = strrchr (fn, '/');
sc.OpenMem("GAMEINFO", data, size); sc.OpenMem("GAMEINFO", data, size);
sc.SetCMode(true);
while(sc.GetToken()) while(sc.GetToken())
{ {
sc.TokenMustBe(TK_Identifier); sc.TokenMustBe(TK_Identifier);