mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-17 01:31:25 +00:00
Fix InitLevelMesh called before line portals are set
This commit is contained in:
parent
04941cab43
commit
bef1c27600
1 changed files with 2 additions and 2 deletions
|
@ -3242,8 +3242,6 @@ void MapLoader::LoadLevel(MapData *map, const char *lumpname, int position)
|
|||
|
||||
SpawnThings(position);
|
||||
|
||||
InitLevelMesh();
|
||||
|
||||
for (int i = 0; i < MAXPLAYERS; ++i)
|
||||
{
|
||||
if (Level->PlayerInGame(i) && Level->Players[i]->mo != nullptr)
|
||||
|
@ -3260,6 +3258,8 @@ void MapLoader::LoadLevel(MapData *map, const char *lumpname, int position)
|
|||
// set up world state
|
||||
SpawnSpecials();
|
||||
|
||||
InitLevelMesh();
|
||||
|
||||
// disable reflective planes on sloped sectors.
|
||||
for (auto &sec : Level->sectors)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue