mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Fix player being not blocked by sprites lying on an extended floor.
getzrange() returns the floor rather than the sprite if their heights are equal. Now, make an exception for extended floors (analogously, ceilings). git-svn-id: https://svn.eduke32.com/eduke32@2347 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ebbf4d79ce
commit
c900e4ef87
1 changed files with 20 additions and 2 deletions
|
@ -13076,8 +13076,26 @@ restart_grand:
|
||||||
|
|
||||||
if (clipyou != 0)
|
if (clipyou != 0)
|
||||||
{
|
{
|
||||||
if ((pos->z > daz) && (daz > *ceilz)) { *ceilz = daz; *ceilhit = j+49152; }
|
if ((pos->z > daz) && (daz > *ceilz
|
||||||
if ((pos->z < daz2) && (daz2 < *florz)) { *florz = daz2; *florhit = j+49152; }
|
#ifdef YAX_ENABLE
|
||||||
|
|| (daz == *ceilz && yax_getbunch(clipsectorlist[i], YAX_CEILING)>=0)
|
||||||
|
#endif
|
||||||
|
))
|
||||||
|
{
|
||||||
|
*ceilz = daz;
|
||||||
|
*ceilhit = j+49152;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((pos->z < daz2) && (daz2 < *florz
|
||||||
|
#ifdef YAX_ENABLE
|
||||||
|
// can have a floor-sprite laying directly on the floor!
|
||||||
|
|| (daz2 == *florz && yax_getbunch(clipsectorlist[i], YAX_FLOOR)>=0)
|
||||||
|
#endif
|
||||||
|
))
|
||||||
|
{
|
||||||
|
*florz = daz2;
|
||||||
|
*florhit = j+49152;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue