mirror of
https://github.com/guezoloic/racing-game.git
synced 2026-03-28 18:03:50 +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))
|
if (next.equals(previous))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
Circuit element = getElement(x, y);
|
Circuit element = getElement(x, y);
|
||||||
if (element.isRoad() || (element.isFinish() && element.isRoad()))
|
Circuit cElement = getElement(current.x, current.y);
|
||||||
|
if (element.isRoad() || (element.isFinish() && cElement.isRoad()))
|
||||||
{
|
{
|
||||||
previous = current;
|
previous = current;
|
||||||
current = next;
|
current = next;
|
||||||
|
|||||||
Reference in New Issue
Block a user