diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2012-06-06 08:13:15 -0400 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2012-06-06 08:13:15 -0400 |
commit | d6f5d05a53fc9e7d39854759080084c233c78dc7 (patch) | |
tree | 8f19f17d0facb625a8a4f618ccd5b87cc425c142 | |
parent | 4b4bc4522fefee3dd8494a530d0879c33a69ca28 (diff) | |
download | frigidearth-d6f5d05a53fc9e7d39854759080084c233c78dc7.tar.gz frigidearth-d6f5d05a53fc9e7d39854759080084c233c78dc7.tar.bz2 frigidearth-d6f5d05a53fc9e7d39854759080084c233c78dc7.zip |
Fixed the map out of bounds bug AGAIN
-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 07df1d6..bd3471f 100644 --- a/src/com/fourisland/frigidearth/MapViewGameState.java +++ b/src/com/fourisland/frigidearth/MapViewGameState.java | |||
@@ -194,7 +194,7 @@ public class MapViewGameState implements GameState | |||
194 | { | 194 | { |
195 | for (int testing = 0; testing < 1000; testing++) | 195 | for (int testing = 0; testing < 1000; testing++) |
196 | { | 196 | { |
197 | newx = Functions.random(1, mapWidth-1); | 197 | newx = Functions.random(1, mapWidth-2); |
198 | newy = Functions.random(1, mapHeight-2); | 198 | newy = Functions.random(1, mapHeight-2); |
199 | ways = 4; | 199 | ways = 4; |
200 | 200 | ||