mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- fixed uninitialized light index variable for floor sprites.
This commit is contained in:
parent
351dabdb90
commit
83944a7191
1 changed files with 1 additions and 0 deletions
|
@ -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?
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue