ソースを参照

Switched x and y, oops.

master
Ben Kurtovic 11年前
コミット
1dcbe667e5
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      src/Grid.java

+ 2
- 2
src/Grid.java ファイルの表示

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


読み込み中…
キャンセル
保存