chiark / gitweb /
currency: Make currency pieces be fastsplit
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 25 Apr 2022 22:58:31 +0000 (23:58 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Apr 2022 14:15:30 +0000 (15:15 +0100)
The actual machinery does all the hard work.

This shouldn't have any overall visible functional change.  It just
engages new contraptions during piece creation and load/save, but
right now they shouldn't have any work to do because we don't actually
ever split (or merge) currency.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/currency.rs

index b427e248ba38edcb1ee8d7317b5b863389016684..8221dbc0b11861d823d29bd24e29aeed37ef9c41 100644 (file)
@@ -69,6 +69,8 @@ impl PieceSpec for Spec {
       itemname,
     };
 
+    gpc.fastsplit = FastSplitId::new_placeholder();
+
     let special = PieceSpecialProperties {
       multigrab: true,
       ..default()