Skip to content

Commit

Permalink
Merge pull request doublespeakgames#626 from Roarez/master
Browse files Browse the repository at this point in the history
Fix buying maps causing crashes doublespeakgames#515
  • Loading branch information
Continuities authored Sep 17, 2018
2 parents 15ddf72 + d498a13 commit 06e1d5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/world.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 06e1d5a

Please sign in to comment.