- fixed uninitialized light index variable for floor sprites.

This commit is contained in:
Christoph Oelckers 2021-10-11 22:28:26 +02:00
parent 351dabdb90
commit 83944a7191

View file

@ -352,6 +352,7 @@ void HWFlat::ProcessFlatSprite(HWDrawInfo* di, spritetype* sprite, sectortype* s
texture = tileGetTexture(tilenum); texture = tileGetTexture(tilenum);
z = sprite->z * (1 / -256.f); z = sprite->z * (1 / -256.f);
if (z == di->Viewpoint.Pos.Z) return; // looking right at the edge. 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? visibility = sectorVisibility(sector) *(4.f / 5.f); // The factor comes directly from Polymost. What is it with Build and these magic factors?