@@ -59,7 +59,7 @@ mkLevel difficulty = do
5959 start <- randomP
6060 end <- randomP
6161 -- first the base geography: all rocks
62− let baseGeo = array ((0,0), (levelWidth, levelHeight))
62+ let baseGeo = array ((0,0), (levelWidth-1, levelHeight-1))
6363 [((x,y),Rock) | x <- [0..levelWidth-1], y <- [0..levelHeight-1]]
6464 -- next the empty spaces that make the rooms
6565 -- for this we generate a number of center points