mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Fix additional clipmove() issue
git-svn-id: https://svn.eduke32.com/eduke32@7832 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
1da1331299
commit
dc7ec3b2fe
1 changed files with 4 additions and 0 deletions
|
@ -1175,6 +1175,10 @@ int32_t clipmove(vec3_t * const pos, int16_t * const sectnum, int32_t xvect, int
|
|||
|
||||
v.x = walldist; if (d.y > 0) v.x = -v.x;
|
||||
v.y = walldist; if (d.x < 0) v.y = -v.y;
|
||||
|
||||
if (d.x * (pos->y-p1.y-v.y) < (pos->x-p1.x-v.x) * d.y)
|
||||
v.x >>= 1, v.y >>= 1;
|
||||
|
||||
addclipline(p1.x+v.x, p1.y+v.y, p2.x+v.x, p2.y+v.y, objtype);
|
||||
}
|
||||
else if (wal->nextsector>=0)
|
||||
|
|
Loading…
Reference in a new issue