mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
SW: Clamp tsprz of Bouncing Betty mines to their floorz if beneath the floor
This fixes their invisibility in Polymost. git-svn-id: https://svn.eduke32.com/eduke32@8597 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/sw/src/draw.cpp
This commit is contained in:
parent
df36f27b32
commit
364b41bd55
1 changed files with 9 additions and 0 deletions
|
@ -750,6 +750,15 @@ analyzesprites(int viewx, int viewy, int viewz, SWBOOL mirror)
|
|||
}
|
||||
}
|
||||
|
||||
// workaround for mines beneath the floor
|
||||
if (tsp->picnum == BETTY_R0)
|
||||
{
|
||||
auto sp = (uspriteptr_t)&sprite[SpriteNum];
|
||||
int32_t const floorz = getflorzofslope(sp->sectnum, sp->x, sp->y);
|
||||
if (sp->z > floorz)
|
||||
tsp->z = floorz;
|
||||
}
|
||||
|
||||
if (r_shadows && TEST(tu->Flags, SPR_SHADOW))
|
||||
{
|
||||
DoShadows(tsp, viewz);
|
||||
|
|
Loading…
Reference in a new issue