mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Use updatesectorbreadth() in clipmove()
git-svn-id: https://svn.eduke32.com/eduke32@7480 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
8c6ddcc137
commit
ae59a46c8b
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue