Skip to content

Commit

Permalink
Fix #5825
Browse files Browse the repository at this point in the history
(cherry picked from commit 32e9983)
  • Loading branch information
ashdnazg committed Nov 4, 2017
1 parent 4f4b9a7 commit 341c771
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rts/Sim/Units/CommandAI/MobileCAI.cpp
Expand Up @@ -335,7 +335,8 @@ void CMobileCAI::GiveCommandReal(const Command& c, bool fromSynced)
}
}

if (!(c.options & SHIFT_KEY) && nonQueingCommands.find(c.GetID()) == nonQueingCommands.end()) {
if (!(c.options & SHIFT_KEY) && c.GetID() != CMD_SET_WANTED_MAX_SPEED &&
nonQueingCommands.find(c.GetID()) == nonQueingCommands.end()) {
tempOrder = false;

SetTransportee(nullptr);
Expand Down Expand Up @@ -1582,7 +1583,7 @@ CUnit* CMobileCAI::FindUnitToTransport(float3 center, float radius)
{
CUnit* bestUnit = nullptr;
float bestDist = std::numeric_limits<float>::max();

QuadFieldQuery qfQuery;
quadField->GetUnitsExact(qfQuery, center, radius);

Expand Down

0 comments on commit 341c771

Please sign in to comment.