From 51811680c3cb081efcee6d3dc9dac45e47f93b12 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sat, 19 Aug 2017 15:51:29 -0700 Subject: [PATCH] Underp teh derp in CScriptActorRotate --- Runtime/World/CScriptActorRotate.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Runtime/World/CScriptActorRotate.cpp b/Runtime/World/CScriptActorRotate.cpp index 46cacccde..948035bd0 100644 --- a/Runtime/World/CScriptActorRotate.cpp +++ b/Runtime/World/CScriptActorRotate.cpp @@ -25,19 +25,17 @@ void CScriptActorRotate::Accept(IVisitor& visitor) void CScriptActorRotate::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) { - bool acceptCalled = false; if (msg == EScriptObjectMessage::Activate) { CEntity::AcceptScriptMsg(msg, uid, mgr); - acceptCalled = true; + return; } if (msg == EScriptObjectMessage::Action || msg == EScriptObjectMessage::Next || (msg == EScriptObjectMessage::Registered && x58_27_updateOnCreation)) UpdateActors(msg == EScriptObjectMessage::Next, mgr); - if (!acceptCalled) - CEntity::AcceptScriptMsg(msg, uid, mgr); + CEntity::AcceptScriptMsg(msg, uid, mgr); } void CScriptActorRotate::Think(float dt, CStateManager& mgr)