mirror of
https://github.com/guezoloic/L3-racing-game.git
synced 2026-03-29 03:23:44 +00:00
fix(Map.java): changer en current.isRoad
This commit is contained in:
@@ -218,7 +218,8 @@ public class Map
|
||||
continue;
|
||||
|
||||
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;
|
||||
current = next;
|
||||
|
||||
Reference in New Issue
Block a user