summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-27 13:22:03 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commitf4631652b2bd9b89bb7bc4389f16d51464766471 (patch)
treea29a61dba269a1491412aac17370c91dfe456e72 /play.js
parentf67ba24cf94b7617752dd6047deeedda46b7841a (diff)
downloadandean-abyss-f4631652b2bd9b89bb7bc4389f16d51464766471.tar.gz
Stack shipments in cities in opposing directions.
Diffstat (limited to 'play.js')
-rw-r--r--play.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/play.js b/play.js
index 7e7723a..d870438 100644
--- a/play.js
+++ b/play.js
@@ -1024,7 +1024,10 @@ function layout_city_shipments(s, list, xc, yc) {
sh.style.left = (x) + "px"
sh.style.top = (y) + "px"
sh.style.zIndex = z--
- x += 8
+ if (i & 1)
+ x -= 8
+ else
+ x += 8
y += 8
}
}