summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}
}