From: Ian Jackson Date: Sun, 31 Jan 2021 23:06:14 +0000 (+0000) Subject: hidden: a todo X-Git-Tag: otter-0.4.0~572 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=2340fa981b1f967325685ea02dbfa3319a79ad5b;p=otter.git hidden: a todo Signed-off-by: Ian Jackson --- diff --git a/daemon/api.rs b/daemon/api.rs index b60281a3..1e96ba74 100644 --- a/daemon/api.rs +++ b/daemon/api.rs @@ -308,6 +308,7 @@ api_route!{ } #[throws(ApiPieceOpError)] fn op(&self, a: ApiPieceOpArgs) -> PieceUpdate { + // xxx prevent restzcking anything that is occulting let ApiPieceOpArgs { gs,piece, .. } = a; let pc = gs.pieces.byid_mut(piece).unwrap(); pc.zlevel = ZLevel { z : self.z.clone(), zg : gs.gen };