Aiming is disabled when unconscious/stunned, the range of fire lightsources isn't randomized to reduce the amount of required convexhull updates

This commit is contained in:
Regalis
2016-05-19 19:49:31 +03:00
parent a477dad1b2
commit 7113a154fe
3 changed files with 4 additions and 2 deletions

View File

@@ -206,7 +206,7 @@ namespace Barotrauma
LimitSize();
lightSource.Range = Math.Max(size.X, size.Y) * Rand.Range(8.0f, 10.0f) / 2.0f;
lightSource.Range = Math.Max(size.X, size.Y) * 10.0f / 2.0f;
lightSource.Color = new Color(1.0f, 0.45f, 0.3f) * Rand.Range(0.8f, 1.0f);
lightSource.Position = position;