Run animations at the normal rate regardless of day length factor.

This commit is contained in:
Jonathan G Rennison
2016-03-02 18:36:53 +00:00
parent 0ab20d7f5c
commit 26fa77c5ee
5 changed files with 14 additions and 12 deletions

View File

@@ -56,7 +56,7 @@ struct AnimationBase {
* increasing this value by one doubles the wait. 0 is the minimum value
* allowed for animation_speed, which corresponds to 30ms, and 16 is the
* maximum, corresponding to around 33 minutes. */
if (_tick_counter % (1 << animation_speed) != 0) return;
if (SCALED_TICK_COUNTER % (1 << animation_speed) != 0) return;
uint8 frame = GetAnimationFrame(tile);
uint8 num_frames = spec->animation.frames;