From 55c2fe31bebcc00e9ca6d4c8ea12b12f3d4fc2b5 Mon Sep 17 00:00:00 2001 From: Latapostrophe Date: Sat, 26 Oct 2019 13:27:43 +0200 Subject: [PATCH] SPB on floor --- src/p_enemy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/p_enemy.c b/src/p_enemy.c index 901589dd9..e18f585be 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -8878,10 +8878,10 @@ void A_SPBChase(mobj_t *actor) } // Finally, no matter what, the spb should not be able to be under the ground, or above the ceiling; - if (actor->z < actor->floorz + 8*mapobjectscale) - actor->z = actor->floorz + 8*mapobjectscale; - else if (actor->z > actor->ceilingz - 8*mapobjectscale) - actor->z = actor->ceilingz - 8*mapobjectscale; + if (actor->z < actor->floorz) + actor->z = actor->floorz; + else if (actor->z > actor->ceilingz - actor->height) + actor->z = actor->ceilingz - actor->height; return;