Skip to content

Commit

Permalink
consistent if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiernan-Alderman committed May 26, 2024
1 parent 635059e commit 9e15007
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dScripts/ai/AG/AgShipShake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down

0 comments on commit 9e15007

Please sign in to comment.