summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/play.js b/play.js
index 6929382..a9cddba 100644
--- a/play.js
+++ b/play.js
@@ -535,8 +535,8 @@ function layout_blocks_stacked(location, secret, known) {
function position_block_stacked(location, i, c, k, element) {
let space = TOWNS[location]
let block_size = 60+6
- let x = space.x + (i - c) * 16 + k * 12
- let y = space.y + (i - c) * 16 - k * 12
+ let x = space.layout.x + (i - c) * 16 + k * 12
+ let y = space.layout.y + (i - c) * 16 - k * 12
element.style.left = ((x - block_size/2)|0)+"px"
element.style.top = ((y - block_size/2)|0)+"px"
}