From: Ian Jackson Date: Sun, 14 Feb 2021 18:32:00 +0000 (+0000) Subject: script: Drop wrong `gen` in TransmitUpdateEntry::Recorded X-Git-Tag: otter-0.4.0~493 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a1e57cab8cf439537d7e38933042d216754180b8;p=otter.git script: Drop wrong `gen` in TransmitUpdateEntry::Recorded This isn't there in the Rust code. It clears our gen, but the general message loop puts it back, which is why we didn't notice. Signed-off-by: Ian Jackson --- diff --git a/templates/script.ts b/templates/script.ts index 452dadb5..5cdd9b2a 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -1166,7 +1166,7 @@ pieceops.SetZLevel = function } messages.Recorded = function -(j: { piece: PieceId, cseq: ClientSeq, gen: Generation +(j: { piece: PieceId, cseq: ClientSeq, zg: Generation|null, svg: string | null } ) { let piece = j.piece; let p = pieces[piece]!; @@ -1188,7 +1188,6 @@ messages.Recorded = function p.zg = zg_new; }); } - gen = j.gen; } messages.Error = function