diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2012-06-03 20:55:57 -0400 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2012-06-03 20:55:57 -0400 |
commit | a095ccfa9d40d93e89f17acbcd4df04cebe71338 (patch) | |
tree | 3e58d43622cc77824146ece48bade153e1354347 /src/com/fourisland | |
parent | 4b31634a783ec039d2340cce7477f8e0969efb6a (diff) | |
download | frigidearth-a095ccfa9d40d93e89f17acbcd4df04cebe71338.tar.gz frigidearth-a095ccfa9d40d93e89f17acbcd4df04cebe71338.tar.bz2 frigidearth-a095ccfa9d40d93e89f17acbcd4df04cebe71338.zip |
Actually fixed the first out of bounds map bug mentioned earlier
Diffstat (limited to 'src/com/fourisland')
-rw-r--r-- | src/com/fourisland/frigidearth/MapViewGameState.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/fourisland/frigidearth/MapViewGameState.java b/src/com/fourisland/frigidearth/MapViewGameState.java index 5e16219..65bfbe7 100644 --- a/src/com/fourisland/frigidearth/MapViewGameState.java +++ b/src/com/fourisland/frigidearth/MapViewGameState.java | |||
@@ -172,7 +172,7 @@ public class MapViewGameState implements GameState | |||
172 | { | 172 | { |
173 | Point to = dir.to(new Point(newx, newy)); | 173 | Point to = dir.to(new Point(newx, newy)); |
174 | 174 | ||
175 | if ((isValidPosition(newx, newy)) && (grid[to.x][to.y] == Tile.DirtFloor) || (grid[to.x][to.y] == Tile.Corridor)) | 175 | if ((isValidPosition(to.x, to.y)) && (grid[to.x][to.y] == Tile.DirtFloor) || (grid[to.x][to.y] == Tile.Corridor)) |
176 | { | 176 | { |
177 | ways--; | 177 | ways--; |
178 | } | 178 | } |