about summary refs log tree commit diff stats
path: root/src/com/fourisland
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2012-06-06 08:13:15 -0400
committerStarla Insigna <hatkirby@fourisland.com>2012-06-06 08:13:15 -0400
commitd6f5d05a53fc9e7d39854759080084c233c78dc7 (patch)
tree8f19f17d0facb625a8a4f618ccd5b87cc425c142 /src/com/fourisland
parent4b4bc4522fefee3dd8494a530d0879c33a69ca28 (diff)
downloadfrigidearth-d6f5d05a53fc9e7d39854759080084c233c78dc7.tar.gz
frigidearth-d6f5d05a53fc9e7d39854759080084c233c78dc7.tar.bz2
frigidearth-d6f5d05a53fc9e7d39854759080084c233c78dc7.zip
Fixed the map out of bounds bug AGAIN
Diffstat (limited to 'src/com/fourisland')
-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 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