mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
- last commit deleted a small piece of code.
This commit is contained in:
parent
f201dab534
commit
f818d25542
2 changed files with 8 additions and 4 deletions
|
@ -3436,12 +3436,17 @@ void P_FreeLevelData ()
|
||||||
level.killed_monsters = level.found_items = level.found_secrets =
|
level.killed_monsters = level.found_items = level.found_secrets =
|
||||||
wminfo.maxfrags = 0;
|
wminfo.maxfrags = 0;
|
||||||
|
|
||||||
FBehavior::StaticUnloadModules ();
|
|
||||||
level.segs.Clear();
|
|
||||||
if (level.sectors.Size() > 0)
|
if (level.sectors.Size() > 0)
|
||||||
{
|
{
|
||||||
delete[] level.sectors[0].e;
|
delete[] level.sectors[0].e;
|
||||||
}
|
}
|
||||||
|
for (auto &sub : level.subsectors)
|
||||||
|
{
|
||||||
|
if (sub.BSP != nullptr) delete sub.BSP;
|
||||||
|
}
|
||||||
|
|
||||||
|
FBehavior::StaticUnloadModules ();
|
||||||
|
level.segs.Clear();
|
||||||
level.sectors.Clear();
|
level.sectors.Clear();
|
||||||
level.lines.Clear();
|
level.lines.Clear();
|
||||||
level.sides.Clear();
|
level.sides.Clear();
|
||||||
|
|
|
@ -1409,7 +1409,7 @@ struct subsector_t
|
||||||
FMiniBSP *BSP;
|
FMiniBSP *BSP;
|
||||||
seg_t *firstline;
|
seg_t *firstline;
|
||||||
sector_t *render_sector;
|
sector_t *render_sector;
|
||||||
uint32_t numlines;
|
uint32_t numlines;
|
||||||
int flags;
|
int flags;
|
||||||
|
|
||||||
void BuildPolyBSP();
|
void BuildPolyBSP();
|
||||||
|
@ -1462,7 +1462,6 @@ struct FMiniBSP
|
||||||
TArray<vertex_t> Verts;
|
TArray<vertex_t> Verts;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// OTHER TYPES
|
// OTHER TYPES
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue