mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-09 22:17:14 +08:00
Merge pull request #626 from Roarez/master
Fix buying maps causing crashes #515
This commit is contained in:
+2
-2
@@ -645,8 +645,8 @@ var World = {
|
|||||||
if(!World.seenAll){
|
if(!World.seenAll){
|
||||||
var x,y,mask = $SM.get('game.world.mask');
|
var x,y,mask = $SM.get('game.world.mask');
|
||||||
do {
|
do {
|
||||||
x = 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);
|
y = Math.floor(Math.random() * (World.RADIUS * 2 + 1));
|
||||||
} while (mask[x][y]);
|
} while (mask[x][y]);
|
||||||
World.uncoverMap(x, y, 5, mask);
|
World.uncoverMap(x, y, 5, mask);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user