From 83944a71916d406302404f82ca6c2dc1b4a369d7 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 11 Oct 2021 22:28:26 +0200 Subject: [PATCH] - fixed uninitialized light index variable for floor sprites. --- source/core/rendering/scene/hw_flats.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/core/rendering/scene/hw_flats.cpp b/source/core/rendering/scene/hw_flats.cpp index 55d10901b00..0e0d6d4c90e 100644 --- a/source/core/rendering/scene/hw_flats.cpp +++ b/source/core/rendering/scene/hw_flats.cpp @@ -352,6 +352,7 @@ void HWFlat::ProcessFlatSprite(HWDrawInfo* di, spritetype* sprite, sectortype* s texture = tileGetTexture(tilenum); z = sprite->z * (1 / -256.f); if (z == di->Viewpoint.Pos.Z) return; // looking right at the edge. + dynlightindex = -1; visibility = sectorVisibility(sector) *(4.f / 5.f); // The factor comes directly from Polymost. What is it with Build and these magic factors?