From 76863607e3263a43fb3d73d09a6f22475b57269e Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 19 Mar 2019 17:08:08 +0000 Subject: [PATCH] This fixes a bug in clipmove() where clipping against sprites above you was wrong Because this is a check for sprites above the sprite being moved and not a check for sprites below, the height of the sprite should not be taken into account at all here and the base of the sprite should be used instead. git-svn-id: https://svn.eduke32.com/eduke32@7404 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/clip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/src/clip.cpp b/source/build/src/clip.cpp index 76bf367f9..b4d4ca89b 100644 --- a/source/build/src/clip.cpp +++ b/source/build/src/clip.cpp @@ -1108,7 +1108,7 @@ int32_t clipmove(vec3_t *pos, int16_t *sectnum, { const int32_t daz = spr->z + spriteheightofs(j, &k, 1); - if (pos->z > daz-k-flordist && pos->z < daz+ceildist) + if (pos->z > daz-k-flordist && pos->z < spr->z + ceildist) { get_wallspr_points(spr, &x1, &x2, &y1, &y2);