Skip to content

Commit

Permalink
Fix mantis #2811 (Area Unload Behaving Incorrectly)
Browse files Browse the repository at this point in the history
  • Loading branch information
zerver committed Dec 7, 2011
1 parent 9b4c1eb commit 16235d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/Sim/Units/CommandAI/TransportCAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ bool CTransportCAI::FindEmptySpot(const float3& center, float radius, float spre
do {
delta.x = (gs->randFloat() - 0.5f) * 2;
delta.z = (gs->randFloat() - 0.5f) * 2;
pos = center + delta * std::min(radius, spread);
pos = center + delta * radius;

badPos = ((delta.SqLength2D() > 1.0f) || !pos.IsInBounds());
} while (badPos);
Expand Down

0 comments on commit 16235d0

Please sign in to comment.