Skip to content

Commit

Permalink
- fixed uninitialized light index variable for floor sprites.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 11, 2021
1 parent 351dabd commit 83944a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/core/rendering/scene/hw_flats.cpp
Expand Up @@ -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?

Expand Down

0 comments on commit 83944a7

Please sign in to comment.