Procházet zdrojové kódy

Switched x and y, oops.

master
Ben Kurtovic před 11 roky
rodič
revize
1dcbe667e5
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      src/Grid.java

+ 2
- 2
src/Grid.java Zobrazit soubor

@@ -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() {


Načítá se…
Zrušit
Uložit