fix(Map.java): ajout bordure a getPathMap

This commit is contained in:
2025-11-10 23:01:58 +01:00
parent a2f6903542
commit a85469e263
2 changed files with 14 additions and 12 deletions

View File

@@ -274,7 +274,9 @@ public class Map
*/
public Point getPath(int i)
{
return this.pathMap.get(i);
if (i < 0) return this.pathMap.getFirst();
else if (i >= this.pathMap.size()) return this.pathMap.getLast();
else return this.pathMap.get(i);
}
/**