From ae59a46c8bb63905b63c27233b64ba82cb9ebd05 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 6 Apr 2019 06:37:53 +0000 Subject: [PATCH] Use updatesectorbreadth() in clipmove() git-svn-id: https://svn.eduke32.com/eduke32@7480 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/clip.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/build/src/clip.cpp b/source/build/src/clip.cpp index 00f28d724..587952b36 100644 --- a/source/build/src/clip.cpp +++ b/source/build/src/clip.cpp @@ -1285,7 +1285,7 @@ int32_t clipmove(vec3_t *pos, int16_t *sectnum, int32_t xvect, int32_t yvect, if ((tempint1^tempint2) < 0) { - updatesectorz(pos->x, pos->y, pos->z, sectnum); + updatesectorbreadth(pos->x, pos->y, sectnum); return clipReturn; } } @@ -1300,7 +1300,7 @@ int32_t clipmove(vec3_t *pos, int16_t *sectnum, int32_t xvect, int32_t yvect, } int const osectnum = *sectnum; - updatesectorz(vec.x, vec.y, pos->z, sectnum); + updatesectorbreadth(vec.x, vec.y, sectnum); if (*sectnum == osectnum || editstatus || (*sectnum != -1 && !check_floor_curb(osectnum, *sectnum, flordist, pos->z, vec.x, vec.y))) { @@ -1312,7 +1312,6 @@ int32_t clipmove(vec3_t *pos, int16_t *sectnum, int32_t xvect, int32_t yvect, *sectnum = osectnum; } while ((xvect|yvect) != 0 && hitwall >= 0 && cnt > 0); -// updatesectorz(pos->x, pos->y, pos->z, sectnum); return clipReturn; }