Skip to content

Commit

Permalink
BR#3361 - An error message is no longer displayed when a goto order c…
Browse files Browse the repository at this point in the history
…ashes in a treasure train.
  • Loading branch information
stiangre committed Jul 25, 2024
1 parent 8d12e38 commit 27dfe1c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/net/sf/freecol/client/control/InGameController.java
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,12 @@ private boolean moveToDestination(Unit unit, List<ModelMessage> messages) {
ret = false;
} else if (!movePath(unit, path)) {
ret = false; // ask the player to resolve the movePath problem
} else if (unit.isDisposed() || !player.owns(unit)) {
/*
* Disposed in combat or cashed in treasure train. Do NOT display
* to the player (or we get an error message).
*/
return true;
} else if (unit.isAtLocation(destination)) {
final Colony colony = (unit.hasTile()) ? unit.getTile().getColony()
: null;
Expand Down

0 comments on commit 27dfe1c

Please sign in to comment.