mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 13:10:34 +00:00
Set the map parser scripts to not lex single chars.
qbsp treats {foo as one token, not two.
This commit is contained in:
parent
45c48a6215
commit
ea541b325d
2 changed files with 2 additions and 0 deletions
|
@ -336,6 +336,7 @@ readMapFile
|
||||||
dat[size] = 0;
|
dat[size] = 0;
|
||||||
|
|
||||||
script = Script_New ();
|
script = Script_New ();
|
||||||
|
script->single = "";
|
||||||
Script_Start (script, [fname fileSystemRepresentation], dat);
|
Script_Start (script, [fname fileSystemRepresentation], dat);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
|
|
@ -510,6 +510,7 @@ LoadMapFile (const char *filename)
|
||||||
Qclose (file);
|
Qclose (file);
|
||||||
|
|
||||||
map_script = Script_New ();
|
map_script = Script_New ();
|
||||||
|
map_script->single = "";
|
||||||
Script_Start (map_script, filename, buf);
|
Script_Start (map_script, filename, buf);
|
||||||
|
|
||||||
num_entities = 0;
|
num_entities = 0;
|
||||||
|
|
Loading…
Reference in a new issue