summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-03-13 12:04:17 +0100
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:15 +0200
commitb586c00ad5855ed23bd25d45715ec8d0a3644d7f (patch)
tree901d53d78d272742d7b4f5ed079bfdd036c6b3e7 /play.js
parentd9504cf1e4d57be6d5a31d1b80810bc4333c9b41 (diff)
downloadandean-abyss-b586c00ad5855ed23bd25d45715ec8d0a3644d7f.tar.gz
Shipment simplifications.
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 79be8e4..14ff8df 100644
--- a/play.js
+++ b/play.js
@@ -882,13 +882,13 @@ function on_update() {
list.length = 0
for (let i = 0; i < 4; ++i) {
let shx = view.shipments[i]
- if (shx < 0) {
+ if (shx === 0) {
list.push(ui.shipments[i])
} else if ((shx & 3) === 0) {
let holder = ui.pieces[shx >> 2]
place_piece_under(ui.shipments[i], holder)
} else {
- // abandoned shipment!
+ // dropped shipment!
let xy = get_center_xy(shx >> 2)
place_piece(ui.shipments[i], xy[0] - 26, xy[1] - 72, 0)
}