From 1c2cc7bd3a507b9746d92f1ead0c966b31a2be20 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 2 Jan 2010 23:37:43 +0000 Subject: [PATCH] - fixed: The GAMEINFO parser needs to use C mode. SVN r2089 (trunk) --- docs/rh-log.txt | 1 + src/d_main.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index bfae5c120..a79dbdeed 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,5 @@ 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: Trying to show a popup crashed in the SBARINFO code because of a missing NULL pointer check. diff --git a/src/d_main.cpp b/src/d_main.cpp index 3de2bab7c..60546f68e 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -1642,6 +1642,7 @@ static FString ParseGameInfo(TArray &pwads, const char *fn, const char const char *lastSlash = strrchr (fn, '/'); sc.OpenMem("GAMEINFO", data, size); + sc.SetCMode(true); while(sc.GetToken()) { sc.TokenMustBe(TK_Identifier);