CScriptTargetingPoint: Brace conditionals where applicable

This commit is contained in:
Lioncash 2020-05-07 11:47:59 -04:00
parent bb578468f4
commit 0fa7e0a73b
1 changed files with 4 additions and 2 deletions

View File

@ -16,13 +16,15 @@ void CScriptTargetingPoint::Accept(IVisitor& visitor) { visitor.Visit(this); }
void CScriptTargetingPoint::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) {
CActor::AcceptScriptMsg(msg, uid, mgr);
if (msg == EScriptObjectMessage::Deactivate || msg == EScriptObjectMessage::Activate)
if (msg == EScriptObjectMessage::Deactivate || msg == EScriptObjectMessage::Activate) {
CEntity::SendScriptMsgs(EScriptObjectState::Attack, mgr, EScriptObjectMessage::None);
}
}
void CScriptTargetingPoint::Think(float dt, CStateManager&) {
if (xec_time <= 0.f)
if (xec_time <= 0.f) {
return;
}
xec_time -= dt;
}