diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-03-13 12:04:17 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-03 18:48:15 +0200 |
commit | b586c00ad5855ed23bd25d45715ec8d0a3644d7f (patch) | |
tree | 901d53d78d272742d7b4f5ed079bfdd036c6b3e7 /play.js | |
parent | d9504cf1e4d57be6d5a31d1b80810bc4333c9b41 (diff) | |
download | andean-abyss-b586c00ad5855ed23bd25d45715ec8d0a3644d7f.tar.gz |
Shipment simplifications.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) } |