light: hack to allow "-dirt 0" to disable all dirmapping (todo: check -dirt 1 implies minlight, sunlight dirt properly?)
This commit is contained in:
parent
2771041a0a
commit
197c898976
|
|
@ -1767,6 +1767,13 @@ void SetupDirt( void ) {
|
|||
|
||||
// check if needed
|
||||
|
||||
if (!globalDirt.boolValue()
|
||||
&& globalDirt.isLocked()) {
|
||||
// HACK: "-dirt 0" disables all dirtmapping even if we would otherwise use it.
|
||||
dirt_in_use = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (globalDirt.boolValue()
|
||||
|| minlightDirt.boolValue()
|
||||
|| sunlight_dirt.boolValue()
|
||||
|
|
|
|||
Loading…
Reference in New Issue