mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
and the rest of the changes before actually working on the new parser
This commit is contained in:
parent
9a4258b5c5
commit
7ef81cae31
1 changed files with 10 additions and 1 deletions
|
@ -41,6 +41,7 @@ static __attribute__ ((used)) const char rcsid[] =
|
|||
#include "QF/va.h"
|
||||
|
||||
#include "bsp5.h"
|
||||
#include "compat.h"
|
||||
|
||||
int nummapbrushfaces;
|
||||
int nummapbrushes;
|
||||
|
@ -485,7 +486,15 @@ LoadMapFile (const char *filename)
|
|||
|
||||
num_entities = 0;
|
||||
|
||||
while (ParseEntity ()) {
|
||||
if (Script_GetToken (map_script, 1)) {
|
||||
if (strequal (map_script->token->str, "QuakeForge-map")) {
|
||||
if (!Script_TokenAvailable (map_script, 1))
|
||||
map_error ("Unexpected EOF reading %s\n", filename);
|
||||
} else {
|
||||
Script_UngetToken (map_script);
|
||||
while (ParseEntity ())
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
Script_Delete (map_script);
|
||||
|
|
Loading…
Reference in a new issue