From ea541b325dd44515e1ba8b06db78623683d519b5 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 9 Sep 2012 17:23:55 +0900 Subject: [PATCH] Set the map parser scripts to not lex single chars. qbsp treats {foo as one token, not two. --- tools/Forge/Bundles/MapEdit/Map.m | 1 + tools/qfbsp/source/map.c | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/Forge/Bundles/MapEdit/Map.m b/tools/Forge/Bundles/MapEdit/Map.m index 71ad276b7..8fa1ed0e5 100644 --- a/tools/Forge/Bundles/MapEdit/Map.m +++ b/tools/Forge/Bundles/MapEdit/Map.m @@ -336,6 +336,7 @@ readMapFile dat[size] = 0; script = Script_New (); + script->single = ""; Script_Start (script, [fname fileSystemRepresentation], dat); do { diff --git a/tools/qfbsp/source/map.c b/tools/qfbsp/source/map.c index 6ca02c954..196e2cdd8 100644 --- a/tools/qfbsp/source/map.c +++ b/tools/qfbsp/source/map.c @@ -510,6 +510,7 @@ LoadMapFile (const char *filename) Qclose (file); map_script = Script_New (); + map_script->single = ""; Script_Start (map_script, filename, buf); num_entities = 0;