about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2012-06-03 20:55:57 -0400
committerStarla Insigna <hatkirby@fourisland.com>2012-06-03 20:55:57 -0400
commita095ccfa9d40d93e89f17acbcd4df04cebe71338 (patch)
tree3e58d43622cc77824146ece48bade153e1354347 /src
parent4b31634a783ec039d2340cce7477f8e0969efb6a (diff)
downloadfrigidearth-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')
-rw-r--r--src/com/fourisland/frigidearth/MapViewGameState.java2
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 }