From f4631652b2bd9b89bb7bc4389f16d51464766471 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 27 Apr 2023 13:22:03 +0200 Subject: Stack shipments in cities in opposing directions. --- play.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } } -- cgit v1.2.3