Permalink
Browse files

attempt to fix slasher issue

  • Loading branch information...
ashdnazg committed Mar 3, 2017
1 parent 06c0406 commit ab61e51448ce4fd81c34bb465f4eff2296603e3f
Showing with 1 addition and 1 deletion.
  1. +1 −1 rts/Sim/Units/CommandAI/MobileCAI.cpp
@@ -765,7 +765,7 @@ void CMobileCAI::ExecuteAttack(Command &c)
// also make sure that we're not locked in close-in/in-range state
// loop due to rotates invoked by in-range or out-of-range states
if (tryTargetRotate) {
- const bool canChaseTarget = (!tempOrder || owner->moveState != MOVESTATE_HOLDPOS);
+ const bool canChaseTarget = owner->moveState != MOVESTATE_HOLDPOS;
const bool targetBehind = (targetMidPosVec.dot(orderTarget->speed) < 0.0f);
if (canChaseTarget && tryTargetHeading && targetBehind && !owner->unitDef->IsHoveringAirUnit()) {
SetGoal(owner->pos + (orderTarget->speed * 80), owner->pos, SQUARE_SIZE, orderTarget->speed.w * 1.1f);

0 comments on commit ab61e51

Please sign in to comment.