We probably don't want to be bailing out here when handling a clipshape

git-svn-id: https://svn.eduke32.com/eduke32@7486 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-04-06 06:38:17 +00:00 committed by Christoph Oelckers
parent 5ac5a2ad3c
commit 303d0048ea

View file

@ -1091,7 +1091,7 @@ int32_t clipmove(vec3_t *pos, int16_t *sectnum, int32_t xvect, int32_t yvect,
}
// We're not interested in any sector reached by portal traversal that we're "inside" of.
if (clipsectcnt != 1 && inside(pos->x, pos->y, dasect) == 1) break;
if (!curspr && clipsectcnt != 1 && inside(pos->x, pos->y, dasect) == 1) break;
else if (clipyou)
{
int16_t objtype = int16_t(!curspr ?
@ -1112,7 +1112,7 @@ int32_t clipmove(vec3_t *pos, int16_t *sectnum, int32_t xvect, int32_t yvect,
}
else if (wal->nextsector>=0)
{
if (inside(pos->x, pos->y, wal->nextsector) == 1) continue;
if (!curspr && inside(pos->x, pos->y, wal->nextsector) == 1) continue;
int i;
for (i=clipsectnum-1; i>=0; i--)