In pravtice, the Delete command would otherwise always restart the
PreparedUpdates and this would defeat the Bulk update and make a game
reset very slow.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
}],
raw: None },
Fine,
- Some(
- Box::new(move |prepub: &mut PrepareUpdatesBuffer|
- prepub.piece_updates(xupdates))
- as SomeUnpreparedUpdates
- ),
+ if xupdates.len() != 0 {
+ Some(
+ Box::new(move |prepub: &mut PrepareUpdatesBuffer|
+ prepub.piece_updates(xupdates))
+ as SomeUnpreparedUpdates
+ )
+ } else { None },
ig_g)
},