mirror of
https://github.com/guezoloic/L3-racing-game.git
synced 2026-03-28 19:13:41 +00:00
fix(Map.java): changer en current.isRoad
This commit is contained in:
@@ -217,8 +217,9 @@ public class Map
|
||||
if (next.equals(previous))
|
||||
continue;
|
||||
|
||||
Circuit element = getElement(x, y);
|
||||
if (element.isRoad() || (element.isFinish() && element.isRoad()))
|
||||
Circuit element = getElement(x, y);
|
||||
Circuit cElement = getElement(current.x, current.y);
|
||||
if (element.isRoad() || (element.isFinish() && cElement.isRoad()))
|
||||
{
|
||||
previous = current;
|
||||
current = next;
|
||||
|
||||
Reference in New Issue
Block a user