Derp, disabling Polyobj_findExplicit apparently blocked off the one thing preventing ERZ2 from crashing before (since it has rogue spawn points without actual First Lines to go with them, for whatever reason)
This commit is contained in:
parent
91934d5aec
commit
66b7597e87
|
@ -657,6 +657,14 @@ static void Polyobj_spawnPolyObj(INT32 num, mobj_t *spawnSpot, INT32 id)
|
|||
// TODO: sound sequence is in args[3]
|
||||
}*/
|
||||
|
||||
// make sure array isn't empty
|
||||
// since Polyobj_findExplicit is disabled currently, we have to do things here instead now!
|
||||
if (po->segCount == 0)
|
||||
{
|
||||
po->isBad = true;
|
||||
CONS_Debug(DBG_POLYOBJ, "Polyobject %d is empty\n", po->id);
|
||||
return;
|
||||
}
|
||||
|
||||
// set the polyobject's spawn spot
|
||||
po->spawnSpot.x = spawnSpot->x;
|
||||
|
|
Loading…
Reference in a new issue