Przeglądaj źródła

Switched x and y, oops.

master
Ben Kurtovic 11 lat temu
rodzic
commit
1dcbe667e5
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      src/Grid.java

+ 2
- 2
src/Grid.java Wyświetl plik

@@ -45,13 +45,13 @@ public class Grid {
public Patch getPatch(int x, int y) {
x = normalizeX(x);
y = normalizeY(y);
return _grid[x][y];
return _grid[y][x];
}

public void setPatch(int x, int y, Patch p) {
x = normalizeX(x);
y = normalizeY(y);
_grid[x][y] = p;
_grid[y][x] = p;
}

public String toString() {


Ładowanie…
Anuluj
Zapisz