Fix implicit 32 -> 64 operation warning in AnimationBase

This commit is contained in:
Jonathan G Rennison
2022-12-11 16:08:38 +00:00
parent a36eefa2ef
commit e9aa92d49e

View File

@@ -69,7 +69,7 @@ struct AnimationBase {
* increasing this value by one doubles the wait. 0 is the minimum value * 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 * allowed for animation_speed, which corresponds to 30ms, and 16 is the
* maximum, corresponding to around 33 minutes. */ * maximum, corresponding to around 33 minutes. */
if (_scaled_tick_counter % (1 << animation_speed) != 0) return; if ((((uint32)_scaled_tick_counter) & ((1 << animation_speed) - 1)) != 0) return;
uint8 frame = Tframehelper::Get(obj, tile); uint8 frame = Tframehelper::Get(obj, tile);
uint8 num_frames = spec->animation.frames; uint8 num_frames = spec->animation.frames;