Fixed flickering lights

This commit is contained in:
Regalis
2016-11-10 17:46:46 +02:00
parent 4bb8531775
commit 8d1db582ad
@@ -54,10 +54,11 @@ namespace Barotrauma.Items.Components
//by the constructions connected to the grid //by the constructions connected to the grid
fullPower = 0.0f; fullPower = 0.0f;
fullLoad = 0.0f; fullLoad = 0.0f;
updateTimer = 0;
connectedList.Clear(); connectedList.Clear();
CheckJunctions(deltaTime); CheckJunctions(deltaTime);
updateTimer = 0;
foreach (Powered p in connectedList) foreach (Powered p in connectedList)
{ {