From d34224a3de0d35638d998237e1d943606a5b1b1c Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 25 Jun 2019 11:28:29 +0000 Subject: [PATCH] "Fix" editor clipping bug allowing movement into null space This doesn't so much fix the issue as band-aid over it--it appears to be an OG BUILD bug that has happened since long before I ever began improving the clipping, I don't know what causes it, and I don't want to fuck everything up trying to fix it right now. git-svn-id: https://svn.eduke32.com/eduke32@7698 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 bc46101ae..3ec422a08 100644 --- a/source/build/src/clip.cpp +++ b/source/build/src/clip.cpp @@ -1372,7 +1372,7 @@ int32_t clipmove(vec3_t * const pos, int16_t * const sectnum, int32_t xvect, int int const osectnum = *sectnum; clipupdatesector(vec, sectnum, rad); - if (*sectnum == osectnum || editstatus || (*sectnum != -1 && !check_floor_curb(osectnum, *sectnum, flordist, pos->z, vec))) + if (*sectnum != -1 && (*sectnum == osectnum || editstatus || !check_floor_curb(osectnum, *sectnum, flordist, pos->z, vec))) { pos->x = vec.x; pos->y = vec.y;