mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 00:20:51 +00:00
- fixed: Light level must be clamped before accessing the distfogtable.
This commit is contained in:
parent
887014c322
commit
baa775b31c
1 changed files with 1 additions and 1 deletions
|
@ -312,7 +312,7 @@ float gl_GetFogDensity(int lightlevel, PalEntry fogcolor)
|
|||
// case 1: black fog
|
||||
if (glset.lightmode != 8)
|
||||
{
|
||||
density=distfogtable[glset.lightmode!=0][lightlevel];
|
||||
density=distfogtable[glset.lightmode!=0][gl_ClampLight(lightlevel)];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue