From d6f5d05a53fc9e7d39854759080084c233c78dc7 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Wed, 6 Jun 2012 08:13:15 -0400 Subject: Fixed the map out of bounds bug AGAIN --- 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 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 { for (int testing = 0; testing < 1000; testing++) { - newx = Functions.random(1, mapWidth-1); + newx = Functions.random(1, mapWidth-2); newy = Functions.random(1, mapHeight-2); ways = 4; -- cgit 1.4.1