mirror of
https://github.com/guezoloic/racing-game.git
synced 2026-03-28 18:03:50 +00:00
fix(Map.java): changement position [0] <-> [1]
This commit is contained in:
@@ -207,8 +207,8 @@ public class Map
|
|||||||
|
|
||||||
for (int[] pos : coord)
|
for (int[] pos : coord)
|
||||||
{
|
{
|
||||||
int x = current.x + pos[0];
|
int x = current.x + pos[1];
|
||||||
int y = current.y + pos[1];
|
int y = current.y + pos[0];
|
||||||
|
|
||||||
if ((x >= 0 && map[0].length > x) && (y >= 0 && map.length > y))
|
if ((x >= 0 && map[0].length > x) && (y >= 0 && map.length > y))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user