engine.c: check (non-)clipping over a floor curb of an upper TROR neighbor.

git-svn-id: https://svn.eduke32.com/eduke32@4383 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2014-03-19 19:53:12 +00:00
parent 88ddf6fe1a
commit 7573f0f09d

View file

@ -13471,7 +13471,24 @@ int32_t clipmove(vec3_t *pos, int16_t *sectnum,
#endif
if (wal->nextsector < 0 || (wal->cstat&dawalclipmask))
{
#ifdef YAX_ENABLE
int16_t cb = yax_getbunch(dasect, YAX_CEILING);
clipyou = 1;
if (cb >= 0 && (sec->ceilingstat & yax_waltosecmask(dawalclipmask)) == 0)
{
int32_t ynw = yax_getnextwall(j, YAX_CEILING);
if (ynw >= 0 && wall[ynw].nextsector >= 0 && (wall[ynw].cstat & dawalclipmask) == 0)
{
clipmove_tweak_pos(pos, gx,gy, x1,y1, x2,y2, &dax,&day);
clipyou = check_floor_curb(dasect, wall[ynw].nextsector, flordist, pos->z, dax, day);
}
}
#else
clipyou = 1;
#endif
}
else if (editstatus == 0)
{