Skip to content
Browse files

-

  • Loading branch information...
1 parent 36dea00 commit 280e34358e16adabbeeb2d9a9c82a732f7753c27 @Error323 committed Oct 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 MyBot.cc
View
2 MyBot.cc
@@ -353,7 +353,7 @@ void DoTurn(PlanetWars& pw) {
{
Planet& source = AP[PIRIDX[j]];
const int mdist2target = target.Distance(source);
- const bool closer = mdist2target < edist2target;
+ const bool closer = mdist2target <= edist2target;
const bool defend = source.NumShips() - GetRequiredShips(source.PlanetID(), AF, EFIDX) > 0;
if (closer && defend)
{

0 comments on commit 280e343

Please sign in to comment.
Something went wrong with that request. Please try again.