Tidying up. No functional change.
(Was originally part of the next, bugfix, commit.)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
let remaining = tgpc_value.qty.checked_sub(take)
.ok_or(Ia::CurrencyShortfall)?;
- tgpc.held = Some(player);
ngpc.xdata_init(Value { qty: take })?;
- tgpc.pinned = false;
+
+ tgpc.held = Some(player);
ngpc.held = None;
+ tgpc.pinned = false;
+
let logents = log_did_to_piece(
ioccults, goccults, gpl, tgpc, tipc,
&format!("took {}{}, leaving {}{}",