mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
88ddf6fe1a
commit
7573f0f09d
1 changed files with 17 additions and 0 deletions
|
@ -13471,7 +13471,24 @@ int32_t clipmove(vec3_t *pos, int16_t *sectnum,
|
||||||
#endif
|
#endif
|
||||||
if (wal->nextsector < 0 || (wal->cstat&dawalclipmask))
|
if (wal->nextsector < 0 || (wal->cstat&dawalclipmask))
|
||||||
{
|
{
|
||||||
|
#ifdef YAX_ENABLE
|
||||||
|
int16_t cb = yax_getbunch(dasect, YAX_CEILING);
|
||||||
|
|
||||||
clipyou = 1;
|
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)
|
else if (editstatus == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue