Skip to content
Snippets Groups Projects
Commit 66b7597e authored by Monster Iestyn's avatar Monster Iestyn
Browse files

Derp, disabling Polyobj_findExplicit apparently blocked off the one thing...

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)
parent 91934d5a
No related branches found
No related tags found
No related merge requests found
...@@ -657,6 +657,14 @@ static void Polyobj_spawnPolyObj(INT32 num, mobj_t *spawnSpot, INT32 id) ...@@ -657,6 +657,14 @@ static void Polyobj_spawnPolyObj(INT32 num, mobj_t *spawnSpot, INT32 id)
// TODO: sound sequence is in args[3] // 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 // set the polyobject's spawn spot
po->spawnSpot.x = spawnSpot->x; po->spawnSpot.x = spawnSpot->x;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment