mirror of
https://github.com/guezoloic/racing-game.git
synced 2026-03-29 02:13:46 +00:00
fix(Map.java): changer en current.isRoad
This commit is contained in:
@@ -218,7 +218,8 @@ public class Map
|
|||||||
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