From: "Enrico Weigelt, metux IT consult" <[email protected]>
---
src/net/sf/freecol/common/debug/DebugUtils.java | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/net/sf/freecol/common/debug/DebugUtils.java
b/src/net/sf/freecol/common/debug/DebugUtils.java
index ed574b14554..01c82e8bbcc 100644
--- a/src/net/sf/freecol/common/debug/DebugUtils.java
+++ b/src/net/sf/freecol/common/debug/DebugUtils.java
@@ -23,6 +23,7 @@ import java.awt.event.ActionEvent;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
+import java.util.Iterator;
import java.util.List;
import java.util.function.Function;
import java.util.function.Predicate;
@@ -588,8 +589,14 @@ public class DebugUtils {
LogBuilder lb = new LogBuilder(256);
lb.add("Desynchronization detected\n");
lb.mark();
- sMap.forEachTile(t -> sPlayer.canSee(t),
- t -> checkDesyncTile(cGame, sPlayer, t, lb));
+
+ Iterator<Tile> iterator = cGame.getMap().getWholeMapIterator();
+ while (iterator.hasNext()) {
+ Tile t = iterator.next();
+ if (sPlayer.canSee(t))
+ checkDesyncTile(cGame, sPlayer, t, lb);
+ }
+
boolean problemDetected = lb.grew();
// Do not check goods amount, the server only sends changes to
// the client when the *price* changes.
--
2.11.0.rc0.7.gbe5a750
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Freecol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freecol-developers