Broken items can be repaired, fixed clients never removing firesources (causing the lights to stay after the flames have been extinguished)

This commit is contained in:
Regalis
2017-01-14 20:30:46 +02:00
parent bd7766d3e7
commit f7ac98ab5f
5 changed files with 101 additions and 41 deletions
+5 -1
View File
@@ -881,7 +881,11 @@ namespace Barotrauma
newFire.Hull == null ? size : size * newFire.Hull.rect.Width,
newFire.Size.Y);
//ignore if the fire wasn't added to this room (invalid position)?
if (!fireSources.Contains(newFire)) continue;
if (!fireSources.Contains(newFire))
{
newFire.Remove();
continue;
}
newFireSources.Add(newFire);
}
}