|
|
|
|
@ -241,8 +241,9 @@ void DoLighting(Point position, uint8_t radius, DisplacementOf<int8_t> offset)
|
|
|
|
|
|
|
|
|
|
// Allow for dim lights in crypt and nest
|
|
|
|
|
if (IsAnyOf(leveltype, DTYPE_NEST, DTYPE_CRYPT)) { |
|
|
|
|
SetLight(position, LightFalloffs[radius][0]); |
|
|
|
|
} else if (GetLight(position) > LightFalloffs[radius][0]) { |
|
|
|
|
if (GetLight(position) > LightFalloffs[radius][0]) |
|
|
|
|
SetLight(position, LightFalloffs[radius][0]); |
|
|
|
|
} else { |
|
|
|
|
SetLight(position, 0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|