From a095ccfa9d40d93e89f17acbcd4df04cebe71338 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 3 Jun 2012 20:55:57 -0400 Subject: Actually fixed the first out of bounds map bug mentioned earlier --- src/com/fourisland/frigidearth/MapViewGameState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com') 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 { Point to = dir.to(new Point(newx, newy)); - if ((isValidPosition(newx, newy)) && (grid[to.x][to.y] == Tile.DirtFloor) || (grid[to.x][to.y] == Tile.Corridor)) + if ((isValidPosition(to.x, to.y)) && (grid[to.x][to.y] == Tile.DirtFloor) || (grid[to.x][to.y] == Tile.Corridor)) { ways--; } -- cgit 1.4.1