Commit 6e7f94b4 authored by Poulet Camille's avatar Poulet Camille
Browse files

RIO observer

parent 87bf4ad2
...@@ -183,7 +183,7 @@ public class RIOBasinNetworkObserverPresence extends ObserverListener implements ...@@ -183,7 +183,7 @@ public class RIOBasinNetworkObserverPresence extends ObserverListener implements
if (mapContinent == null) { if (mapContinent == null) {
maxX = maxY = Double.NEGATIVE_INFINITY; maxX = maxY = Double.NEGATIVE_INFINITY;
minX = minY = Double.POSITIVE_INFINITY; minX = minY = Double.POSITIVE_INFINITY;
mapContinent = ((BasinNetworkSWithContinent) pilot.getAquaticWorld().getEnvironment()).getMapContinent(); mapContinent = ((RIOBasinNetworkWithContinent) pilot.getAquaticWorld().getEnvironment()).getMapContinent();
for (Path2D.Double path : mapContinent.values()) { for (Path2D.Double path : mapContinent.values()) {
minX = Math.min(minX, path.getBounds2D().getMinX()); minX = Math.min(minX, path.getBounds2D().getMinX());
maxX = Math.max(maxX, path.getBounds2D().getMaxX()); maxX = Math.max(maxX, path.getBounds2D().getMaxX());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment