mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +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 ();
|
||||
|
||||
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
|
||||
// Find the startSpot points, and spawn each polyobj
|
||||
|
|
|
@ -312,8 +312,9 @@ class FBlockThingsIterator
|
|||
|
||||
public:
|
||||
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);
|
||||
}
|
||||
void init(const FBoundingBox &box);
|
||||
|
|
Loading…
Reference in a new issue