From 9e150076f29984855c494a312ee20f482802d84a Mon Sep 17 00:00:00 2001 From: dinomking33 <38479763+TAHuntling@users.noreply.github.com> Date: Sat, 25 May 2024 23:14:25 -0500 Subject: [PATCH] consistent if statements --- dScripts/ai/AG/AgShipShake.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dScripts/ai/AG/AgShipShake.cpp b/dScripts/ai/AG/AgShipShake.cpp index e8234e56d..7dd2323a7 100644 --- a/dScripts/ai/AG/AgShipShake.cpp +++ b/dScripts/ai/AG/AgShipShake.cpp @@ -55,10 +55,13 @@ void AgShipShake::OnTimerDone(Entity* self, std::string timerName) { self->AddTimer("ShipShakeExplode", 5.0f); - if (shipFxObject2) { RenderComponent::PlayAnimation(shipFxObject2, u"explosion"); } + if (shipFxObject2) + RenderComponent::PlayAnimation(shipFxObject2, u"explosion"); } else if (timerName == "ShipShakeExplode") { - if (shipFxObject) { RenderComponent::PlayAnimation(shipFxObject, u"idle"); } - if (shipFxObject2) { RenderComponent::PlayAnimation(shipFxObject2, u"idle"); } + if (shipFxObject) + RenderComponent::PlayAnimation(shipFxObject, u"idle"); + if (shipFxObject2) + RenderComponent::PlayAnimation(shipFxObject2, u"idle"); } }