From: Ian Jackson Date: Wed, 17 Mar 2021 12:50:10 +0000 (+0000) Subject: hidden: Slightly improve the bodge displacement algorithm X-Git-Tag: otter-0.4.0~1 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4eda5e9209195709cb3aa6ac67664bfc0fae3957;p=otter.git hidden: Slightly improve the bodge displacement algorithm Signed-off-by: Ian Jackson --- diff --git a/src/hidden.rs b/src/hidden.rs index 75bb091e..9365bba1 100644 --- a/src/hidden.rs +++ b/src/hidden.rs @@ -189,8 +189,8 @@ pub fn piece_pri( then { occultation.views.get_kind(player) .map_displaced(|(area, z)| { - let x: Coord = notch.index().try_into().unwrap(); // xxx - let pos = (area.0[0] + PosC([x*5, 0])).unwrap(); // xxx + let x: Coord = (notch.index() % 3).try_into().unwrap(); // xxx + let pos = (area.0[0] + PosC([x*4, 0])).unwrap(); // xxx let pos = (pos + PosC([5,5])).unwrap(); // xxx let z = z.plus_offset(notch.into()) .unwrap_or_else(|e| { // eek!