From d170d9cdaac206e5a170ad03547f9776c533a0ad Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 16 Apr 2022 00:10:56 +0100 Subject: [PATCH] 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 --- src/dice.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)?; -- 2.30.2