Actually clamp the global sample distance early
This commit is contained in:
parent
631a533272
commit
4d42be0e90
1 changed files with 1 additions and 1 deletions
|
|
@ -841,7 +841,7 @@ public:
|
|||
DPrintf(DMSG_WARNING, "Current lm_sampledist value, %x, on the ZDRayInfo thing is out of range (min: %i, max: %i)\n",
|
||||
CheckInt(key), LIGHTMAP_GLOBAL_SAMPLE_DISTANCE_MIN, LIGHTMAP_GLOBAL_SAMPLE_DISTANCE_MAX);
|
||||
}
|
||||
Level->LightmapSampleDistance = CheckInt(key);
|
||||
Level->LightmapSampleDistance = std::clamp(CheckInt(key), LIGHTMAP_GLOBAL_SAMPLE_DISTANCE_MIN, LIGHTMAP_GLOBAL_SAMPLE_DISTANCE_MAX);
|
||||
break;
|
||||
|
||||
case NAME_lm_bounce:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue