Use updatesectorbreadth() in clipmove()

git-svn-id: https://svn.eduke32.com/eduke32@7480 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-04-06 06:37:53 +00:00 committed by Christoph Oelckers
parent 8c6ddcc137
commit ae59a46c8b

View file

@ -1285,7 +1285,7 @@ int32_t clipmove(vec3_t *pos, int16_t *sectnum, int32_t xvect, int32_t yvect,
if ((tempint1^tempint2) < 0) if ((tempint1^tempint2) < 0)
{ {
updatesectorz(pos->x, pos->y, pos->z, sectnum); updatesectorbreadth(pos->x, pos->y, sectnum);
return clipReturn; 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; 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))) 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; *sectnum = osectnum;
} while ((xvect|yvect) != 0 && hitwall >= 0 && cnt > 0); } while ((xvect|yvect) != 0 && hitwall >= 0 && cnt > 0);
// updatesectorz(pos->x, pos->y, pos->z, sectnum);
return clipReturn; return clipReturn;
} }