From 433198a123ca4b11a711d2b6225296592670bdb1 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Mon, 8 Jun 2020 14:44:11 +0200 Subject: [PATCH] Fix a bunch of compiler warnigns. --- .../Power/SolarControlConsoleBoundUserInterface.cs | 2 +- .../GameObjects/EntitySystems/InstrumentSystem.cs | 2 +- .../Components/Construction/ConstructorComponent.cs | 2 +- Content.Server/GameObjects/Components/PDA/PDAComponent.cs | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Content.Client/GameObjects/Components/Power/SolarControlConsoleBoundUserInterface.cs b/Content.Client/GameObjects/Components/Power/SolarControlConsoleBoundUserInterface.cs index 1149d9a2b5..5752aaa4d2 100644 --- a/Content.Client/GameObjects/Components/Power/SolarControlConsoleBoundUserInterface.cs +++ b/Content.Client/GameObjects/Components/Power/SolarControlConsoleBoundUserInterface.cs @@ -17,7 +17,7 @@ namespace Content.Client.GameObjects.Components.Power public class SolarControlConsoleBoundUserInterface : BoundUserInterface { [Dependency] - private IGameTiming _gameTiming; + private IGameTiming _gameTiming = default; private SolarControlWindow _window; private SolarControlConsoleBoundInterfaceState _lastState = new SolarControlConsoleBoundInterfaceState(0, 0, 0, 0); diff --git a/Content.Client/GameObjects/EntitySystems/InstrumentSystem.cs b/Content.Client/GameObjects/EntitySystems/InstrumentSystem.cs index 887f84a069..5401274988 100644 --- a/Content.Client/GameObjects/EntitySystems/InstrumentSystem.cs +++ b/Content.Client/GameObjects/EntitySystems/InstrumentSystem.cs @@ -10,7 +10,7 @@ namespace Content.Client.GameObjects.EntitySystems [UsedImplicitly] public class InstrumentSystem : EntitySystem { - [Dependency] private readonly IGameTiming _gameTiming; + [Dependency] private readonly IGameTiming _gameTiming = default; public override void Initialize() { diff --git a/Content.Server/GameObjects/Components/Construction/ConstructorComponent.cs b/Content.Server/GameObjects/Components/Construction/ConstructorComponent.cs index e4afa84cdb..3a32edeea3 100644 --- a/Content.Server/GameObjects/Components/Construction/ConstructorComponent.cs +++ b/Content.Server/GameObjects/Components/Construction/ConstructorComponent.cs @@ -137,7 +137,7 @@ namespace Content.Server.GameObjects.Components.Construction } // OK WE'RE GOOD CONSTRUCTION STARTED. - EntitySystem.Get().Play("/Audio/items/deconstruct.ogg", Owner); + EntitySystem.Get().PlayFromEntity("/Audio/items/deconstruct.ogg", Owner); if (prototype.Stages.Count == 2) { // Exactly 2 stages, so don't make an intermediate frame. diff --git a/Content.Server/GameObjects/Components/PDA/PDAComponent.cs b/Content.Server/GameObjects/Components/PDA/PDAComponent.cs index 9f88041a01..95a5f9a57e 100644 --- a/Content.Server/GameObjects/Components/PDA/PDAComponent.cs +++ b/Content.Server/GameObjects/Components/PDA/PDAComponent.cs @@ -198,7 +198,7 @@ namespace Content.Server.GameObjects.Components.PDA { _idSlot.Insert(card.Owner); ContainedID = card; - EntitySystem.Get().Play("/Audio/Guns/MagIn/batrifle_magin.ogg", Owner); + EntitySystem.Get().PlayFromEntity("/Audio/Guns/MagIn/batrifle_magin.ogg", Owner); } /// @@ -222,7 +222,7 @@ namespace Content.Server.GameObjects.Components.PDA { _lightOn = !_lightOn; _pdaLight.Enabled = _lightOn; - EntitySystem.Get().Play("/Audio/items/flashlight_toggle.ogg", Owner); + EntitySystem.Get().PlayFromEntity("/Audio/items/flashlight_toggle.ogg", Owner); UpdatePDAUserInterface(); } @@ -241,7 +241,7 @@ namespace Content.Server.GameObjects.Components.PDA hands.PutInHandOrDrop(cardItemComponent); ContainedID = null; - EntitySystem.Get().Play("/Audio/machines/machine_switch.ogg", Owner); + EntitySystem.Get().PlayFromEntity("/Audio/machines/machine_switch.ogg", Owner); UpdatePDAUserInterface(); }