fix test failure from map parsing

This commit is contained in:
Jonathan 2022-07-29 22:41:57 -04:00
parent d8fd13d481
commit 360daea172
1 changed files with 5 additions and 0 deletions

View File

@ -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));