let update = PreparedUpdate {
gen,
client,
- piece,
+ piece : form.piece, // split view needs modified value!
cseq : form.cseq,
json,
};
let update = Arc::new(update);
- // split vie wthing would go here
+ // split vie wthing would go here, see also update.piece
p.gen_lastclient = gen;
for (_tplayer, tplupdates) in &mut g.updates {
tplupdates.log.push_back(update.clone());
pub struct PreparedUpdate {
pub gen : Generation,
pub client : ClientId,
- pub piece : PieceId,
+ pub piece : VisiblePieceId,
pub cseq : ClientSequence,
pub json : String,
}