mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 08:30:49 +00:00
- fix polyobject init
This commit is contained in:
parent
8137162ca0
commit
496eba3acb
2 changed files with 3 additions and 1 deletions
|
@ -352,6 +352,7 @@ void MapLoader::PO_Init (void)
|
||||||
InitSideLists ();
|
InitSideLists ();
|
||||||
|
|
||||||
Level->Polyobjects.Resize(NumPolyobjs);
|
Level->Polyobjects.Resize(NumPolyobjs);
|
||||||
|
for (auto &po : Level->Polyobjects) po.Level = Level; // must be done before the init loop below.
|
||||||
|
|
||||||
polyIndex = 0; // index polyobj number
|
polyIndex = 0; // index polyobj number
|
||||||
// Find the startSpot points, and spawn each polyobj
|
// Find the startSpot points, and spawn each polyobj
|
||||||
|
|
|
@ -312,8 +312,9 @@ class FBlockThingsIterator
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FBlockThingsIterator(FLevelLocals *Level, int minx, int miny, int maxx, int maxy);
|
FBlockThingsIterator(FLevelLocals *Level, int minx, int miny, int maxx, int maxy);
|
||||||
FBlockThingsIterator(FLevelLocals *Level, const FBoundingBox &box)
|
FBlockThingsIterator(FLevelLocals *l, const FBoundingBox &box)
|
||||||
{
|
{
|
||||||
|
Level = l;
|
||||||
init(box);
|
init(box);
|
||||||
}
|
}
|
||||||
void init(const FBoundingBox &box);
|
void init(const FBoundingBox &box);
|
||||||
|
|
Loading…
Reference in a new issue