Fix additional clipmove() issue

git-svn-id: https://svn.eduke32.com/eduke32@7832 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-07-24 05:23:43 +00:00 committed by Christoph Oelckers
parent 1da1331299
commit dc7ec3b2fe

View file

@ -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.x = walldist; if (d.y > 0) v.x = -v.x;
v.y = walldist; if (d.x < 0) v.y = -v.y; 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); addclipline(p1.x+v.x, p1.y+v.y, p2.x+v.x, p2.y+v.y, objtype);
} }
else if (wal->nextsector>=0) else if (wal->nextsector>=0)