Ver código fonte

Switched x and y, oops.

master
Ben Kurtovic 11 anos atrás
pai
commit
1dcbe667e5
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      src/Grid.java

+ 2
- 2
src/Grid.java Ver arquivo

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


Carregando…
Cancelar
Salvar