mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
clipmove() patch from Nuke.YKT:
"In some edge cases posx/y might be 'inside' of neighbor sector. I've added double check for this case" git-svn-id: https://svn.eduke32.com/eduke32@7827 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
df28860bad
commit
417318c271
1 changed files with 12 additions and 3 deletions
|
@ -1149,8 +1149,17 @@ int32_t clipmove(vec3_t * const pos, int16_t * const sectnum, int32_t xvect, int
|
||||||
}
|
}
|
||||||
|
|
||||||
// We're not interested in any sector reached by portal traversal that we're "inside" of.
|
// We're not interested in any sector reached by portal traversal that we're "inside" of.
|
||||||
if (!curspr && dasect != initialsectnum && inside(pos->x, pos->y, dasect) == 1) break;
|
if (!curspr && dasect != initialsectnum && inside(pos->x, pos->y, dasect) == 1)
|
||||||
else if (clipyou)
|
{
|
||||||
|
int k;
|
||||||
|
for (k=startwall; k<endwall; k++)
|
||||||
|
if (wall[k].nextsector == initialsectnum)
|
||||||
|
break;
|
||||||
|
if (k == endwall)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (clipyou)
|
||||||
{
|
{
|
||||||
int16_t const objtype = curspr ? (int16_t)(curspr - (uspritetype *)sprite) + 49152 : j + 32768;
|
int16_t const objtype = curspr ? (int16_t)(curspr - (uspritetype *)sprite) + 49152 : j + 32768;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue