From 693c84bf20390cba5ac2e9dc309df19720981edd Mon Sep 17 00:00:00 2001 From: Lojemiru Date: Sat, 6 Feb 2021 04:44:53 -0600 Subject: [PATCH] Fixed #18 --- objects/oA5Vent.object.gmx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/objects/oA5Vent.object.gmx b/objects/oA5Vent.object.gmx index f027c4a..a88042e 100644 --- a/objects/oA5Vent.object.gmx +++ b/objects/oA5Vent.object.gmx @@ -107,7 +107,12 @@ alarm[0] = 120 + random(300); 1 if (open) { if (image_index < 2) image_index += 0.1; -} else if (image_index > 0) image_index -= 0.1; +} else { + if (image_index > 0) image_index -= 0.1; +} + +// YYC fix +image_index = clamp(image_index, 0, 2);