fix test failure from map parsing
This commit is contained in:
parent
d8fd13d481
commit
360daea172
|
|
@ -38,9 +38,14 @@ static mapentity_t LoadMap(const char *map)
|
||||||
qbsp_options.target_version = &bspver_q1;
|
qbsp_options.target_version = &bspver_q1;
|
||||||
qbsp_options.target_game = qbsp_options.target_version->game;
|
qbsp_options.target_game = qbsp_options.target_version->game;
|
||||||
|
|
||||||
|
::map.entities.clear();
|
||||||
|
|
||||||
parser_t parser(map);
|
parser_t parser(map);
|
||||||
|
|
||||||
mapentity_t worldspawn;
|
mapentity_t worldspawn;
|
||||||
|
|
||||||
|
mapentity_t &entity = ::map.entities.emplace_back();
|
||||||
|
|
||||||
// FIXME: adds the brush to the global map...
|
// FIXME: adds the brush to the global map...
|
||||||
Q_assert(ParseEntity(parser, &worldspawn));
|
Q_assert(ParseEntity(parser, &worldspawn));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue