- SW: hide the player sprite before calling the renderer.

This commit is contained in:
Christoph Oelckers 2021-03-28 15:28:08 +02:00
parent d3e0a9590c
commit 81a690970b

View file

@ -1566,7 +1566,10 @@ drawscreen(PLAYERp pp, double smoothratio)
else
{
UpdateWallPortalState();
auto cstat = pp->SpriteP->cstat;
if (!TEST(pp->Flags, PF_VIEW_FROM_OUTSIDE)) pp->SpriteP->cstat |= CSTAT_SPRITE_INVISIBLE;
render_drawrooms(pp->SpriteP, { tx, ty, tz }, tsectnum, tang, thoriz, trotscrnang);
pp->SpriteP->cstat = cstat;
}