Przeglądaj źródła

Merge branch 'algorithm'

Leon Palluch 4 lat temu
rodzic
commit
231901e716
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/pathgame/algorithm/DijkstraMagic.java

+ 1 - 1
src/pathgame/algorithm/DijkstraMagic.java

@@ -161,7 +161,7 @@ public class DijkstraMagic {
                 weightMap[posX][posY].setPrevOfPath(dir);
             }
             else {
-                weightMap[posX][posY].setPrevBoatPath(0);
+                weightMap[posX][posY].setPrevBoatPath(extraInd);
             }
         }