update floorz on spike spawn

This commit is contained in:
katsy 2022-02-16 17:45:36 -06:00
parent fdee3a2b7f
commit 76899702e2

View file

@ -12975,7 +12975,10 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean
P_SetMobjState(mobj, mobj->info->meleestate);
}
else
{
mobj->floorz = mobj->z;
mobj->flags |= MF_NOTHINK;
}
// no collision for spikes if the ambush flag is checked
if ((mthing->options & MTF_AMBUSH) || metalrecording)
{