From 32f35721e3f0ac3953badf1bdea7fc8d459d2bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=20Morschh=C3=A4user?= Date: Fri, 21 Mar 2014 18:43:42 +0100 Subject: [PATCH] Use previous behaviour of time assignment again. --- gemrb/core/ControlAnimation.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gemrb/core/ControlAnimation.cpp b/gemrb/core/ControlAnimation.cpp index 28e05f463f..0e49e5cf42 100644 --- a/gemrb/core/ControlAnimation.cpp +++ b/gemrb/core/ControlAnimation.cpp @@ -89,7 +89,10 @@ void ControlAnimation::UpdateAnimation(bool paused) if (anim_phase == 0) { frame = 0; anim_phase = 1; - time = RAND(500, 10000); + // note: the granularity of time should be + // one of twenty values from [500, 10000] + // but not the full range. + time = 500 + 500 * RAND(0, 19); cycle&=~1; Cycle=cycle; } else if (anim_phase == 1) {