From 76899702e2b755eeb209e4f0eff6bc025919d015 Mon Sep 17 00:00:00 2001 From: katsy Date: Wed, 16 Feb 2022 17:45:36 -0600 Subject: [PATCH] update floorz on spike spawn --- src/p_mobj.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/p_mobj.c b/src/p_mobj.c index 87e20fd4a..e5a836581 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -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) {