mirror of
https://github.com/guezoloic/L3-racing-game.git
synced 2026-03-29 03:23:44 +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)
|
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