diff --git a/Barotrauma/BarotraumaServer/Source/Map/Hull.cs b/Barotrauma/BarotraumaServer/Source/Map/Hull.cs index 3fc9ec6d3..b94b26693 100644 --- a/Barotrauma/BarotraumaServer/Source/Map/Hull.cs +++ b/Barotrauma/BarotraumaServer/Source/Map/Hull.cs @@ -9,7 +9,7 @@ namespace Barotrauma { partial class Hull : MapEntity, ISerializableEntity, IServerSerializable, IClientSerializable { - private float lastSentVolume, lastSentOxygen; + private float lastSentVolume, lastSentOxygen, lastSentFireCount; private float sendUpdateTimer; public override bool IsMouseOn(Vector2 position) @@ -34,6 +34,7 @@ namespace Barotrauma //or if oxygen percentage has changed by 5% if (Math.Abs(lastSentVolume - waterVolume) > Volume * 0.1f || Math.Abs(lastSentOxygen - OxygenPercentage) > 5f || + lastSentFireCount != FireSources.Count || FireSources.Count > 0) { sendUpdateTimer -= deltaTime; @@ -42,6 +43,7 @@ namespace Barotrauma GameMain.NetworkMember.CreateEntityEvent(this); lastSentVolume = waterVolume; lastSentOxygen = OxygenPercentage; + lastSentFireCount = FireSources.Count; sendUpdateTimer = NetConfig.HullUpdateInterval; } } diff --git a/Barotrauma/BarotraumaShared/Source/PlayerInput.cs b/Barotrauma/BarotraumaShared/Source/PlayerInput.cs index 2b1d6f7c3..d8e53f5e6 100644 --- a/Barotrauma/BarotraumaShared/Source/PlayerInput.cs +++ b/Barotrauma/BarotraumaShared/Source/PlayerInput.cs @@ -184,21 +184,6 @@ namespace Barotrauma } #endif - public KeyOrMouse State - { - get { return binding; } - } - - public void SetState() - { - hit = binding.IsHit(); - if (hit) hitQueue = true; - - held = binding.IsDown(); - if (held) heldQueue = true; - } -#endif - public bool Hit { get