Merge pull request #626 from Roarez/master

Fix buying maps causing crashes #515
This commit is contained in:
Michael Townsend
2018-09-17 11:04:19 -04:00
committed by GitHub
+2 -2
View File
@@ -645,8 +645,8 @@ var World = {
if(!World.seenAll){
var x,y,mask = $SM.get('game.world.mask');
do {
x = Math.floor(Math.random() * (World.RADIUS * 2) + 1);
y = Math.floor(Math.random() * (World.RADIUS * 2) + 1);
x = Math.floor(Math.random() * (World.RADIUS * 2 + 1));
y = Math.floor(Math.random() * (World.RADIUS * 2 + 1));
} while (mask[x][y]);
World.uncoverMap(x, y, 5, mask);
}