From: Ian Jackson Date: Fri, 15 Apr 2022 23:10:56 +0000 (+0100) Subject: dice: Rename iface from face X-Git-Tag: otter-1.1.0~546 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d170d9cdaac206e5a170ad03547f9776c533a0ad;p=otter.git dice: Rename iface from face This is a mangled version of the requested face which we should only use for the image, since it might be 0 even if there are many labels. Signed-off-by: Ian Jackson --- diff --git a/src/dice.rs b/src/dice.rs index a368fdf3..405e1b2a 100644 --- a/src/dice.rs +++ b/src/dice.rs @@ -339,8 +339,8 @@ impl InertPieceTrait for Die { // This is called by PieceTrait::svg_piece, so face may be non-0 // despite the promise about face in InertPieceTrait. - let face = if self.image.nfaces() == 1 { default() } else { face }; - self.image.svg(f, vpid, face, xdata)?; + let iface = if self.image.nfaces() == 1 { default() } else { face }; + self.image.svg(f, vpid, iface, xdata)?; let remprop = self.cooldown_remprop(state)?;