From 81a690970bccf1a7c51dd1c4868f92d663c75fb0 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 28 Mar 2021 15:28:08 +0200 Subject: [PATCH] - SW: hide the player sprite before calling the renderer. --- source/games/sw/src/draw.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/games/sw/src/draw.cpp b/source/games/sw/src/draw.cpp index f6c85d43e..9b81bc1b5 100644 --- a/source/games/sw/src/draw.cpp +++ b/source/games/sw/src/draw.cpp @@ -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; }