Fixed: Light levels outside the range [0,255] really do matter.
SVN r3223 (trunk)
This commit is contained in:
parent
f69181f851
commit
ee8ca0de87
11 changed files with 97 additions and 48 deletions
|
|
@ -320,7 +320,7 @@ int GetFloorLight (const sector_t *sec)
|
|||
}
|
||||
else
|
||||
{
|
||||
return clamp (sec->lightlevel + sec->GetPlaneLight(sector_t::floor), 0, 255);
|
||||
return sector_t::ClampLight(sec->lightlevel + sec->GetPlaneLight(sector_t::floor));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -332,7 +332,7 @@ int GetCeilingLight (const sector_t *sec)
|
|||
}
|
||||
else
|
||||
{
|
||||
return clamp (sec->lightlevel + sec->GetPlaneLight(sector_t::ceiling), 0, 255);
|
||||
return sector_t::ClampLight(sec->lightlevel + sec->GetPlaneLight(sector_t::ceiling));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue