Permalink
Browse files

Use previous behaviour of time assignment again.

  • Loading branch information...
1 parent 9ff5975 commit 32f35721e3f0ac3953badf1bdea7fc8d459d2bac Mark Morschhäuser committed Mar 21, 2014
Showing with 4 additions and 1 deletion.
  1. +4 −1 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) {

0 comments on commit 32f3572

Please sign in to comment.