Skip to content

Commit

Permalink
Use previous behaviour of time assignment again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Morschhäuser committed Mar 21, 2014
1 parent 9ff5975 commit 32f3572
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gemrb/core/ControlAnimation.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 32f3572

Please sign in to comment.