From b586c00ad5855ed23bd25d45715ec8d0a3644d7f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 13 Mar 2023 12:04:17 +0100 Subject: Shipment simplifications. --- play.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'play.js') 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) } -- cgit v1.2.3