light: hack to allow "-dirt 0" to disable all dirmapping (todo: check -dirt 1 implies minlight, sunlight dirt properly?)

This commit is contained in:
Eric Wasylishen 2016-07-27 12:37:57 -06:00
parent 2771041a0a
commit 197c898976
1 changed files with 7 additions and 0 deletions

View File

@ -1767,6 +1767,13 @@ void SetupDirt( void ) {
// check if needed // 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() if (globalDirt.boolValue()
|| minlightDirt.boolValue() || minlightDirt.boolValue()
|| sunlight_dirt.boolValue() || sunlight_dirt.boolValue()