Unstable v0.15.17.0 (Hex is out of town edition)
This commit is contained in:
@@ -98,7 +98,7 @@ namespace Barotrauma
|
||||
private IEnumerable<CoroutineStatus> DimLight(LightSource light)
|
||||
{
|
||||
float currBrightness = 1.0f;
|
||||
while (light.Color.A > 0.0f && flashDuration > 0.0f)
|
||||
while (light.Color.A > 0.0f && flashDuration > 0.0f && currBrightness > 0.0f)
|
||||
{
|
||||
light.Color = new Color(light.Color.R, light.Color.G, light.Color.B, (byte)(currBrightness * 255));
|
||||
currBrightness -= 1.0f / flashDuration * CoroutineManager.DeltaTime;
|
||||
|
||||
Reference in New Issue
Block a user