mirror of
https://github.com/guezoloic/L3-racing-game.git
synced 2026-03-28 19:13:41 +00:00
fix(Map.java): ajout bordure a getPathMap
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user