Skip to content

Commit

Permalink
Fix #5173
Browse files Browse the repository at this point in the history
  • Loading branch information
ashdnazg committed Mar 16, 2016
1 parent e27d26f commit 157fd28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rts/Sim/MoveTypes/HoverAirMoveType.cpp
Expand Up @@ -548,7 +548,7 @@ void CHoverAirMoveType::UpdateFlying()
wantedSpeed = (goalVec / goalDist) * goalSpeed;
} else {
// switch to hovering (if !CanLand()))
if (flyState != FLY_ATTACKING) {
if (!IsUnitBusy(owner)) {
ExecuteStop();
}
}
Expand Down
2 changes: 1 addition & 1 deletion rts/Sim/Units/CommandAI/MobileCAI.cpp
Expand Up @@ -1238,7 +1238,7 @@ void CMobileCAI::ExecuteLoadUnits(Command& c)
}
return;
}
if (unit != NULL && owner->CanTransport(unit) && UpdateTargetLostTimer(int(c.params[0]))) {
if (owner->CanTransport(unit) && UpdateTargetLostTimer(int(c.params[0]))) {
SetTransportee(unit);

const float sqDist = unit->pos.SqDistance2D(owner->pos);
Expand Down

0 comments on commit 157fd28

Please sign in to comment.