diff options
Diffstat (limited to 'engines/kyra/animator_hof.cpp')
-rw-r--r-- | engines/kyra/animator_hof.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/animator_hof.cpp b/engines/kyra/animator_hof.cpp index 7609b3009d..e1471239da 100644 --- a/engines/kyra/animator_hof.cpp +++ b/engines/kyra/animator_hof.cpp @@ -123,7 +123,7 @@ void KyraEngine_HoF::updateItemAnimations() { const ItemAnimData_v2 *s = &_itemAnimData[_nextAnimItem]; ActiveItemAnim *a = &_activeItemAnim[_nextAnimItem]; - _nextAnimItem = ++_nextAnimItem % _itemAnimDataSize; + _nextAnimItem = (_nextAnimItem + 1) % _itemAnimDataSize; uint32 ctime = _system->getMillis(); if (ctime < a->nextFrame) @@ -168,7 +168,7 @@ void KyraEngine_HoF::updateItemAnimations() { if (nextFrame) { a->nextFrame = _system->getMillis() + (s->frames[a->currentFrame].delay * _tickLength); - a->currentFrame = ++a->currentFrame % s->numFrames; + a->currentFrame = (a->currentFrame + 1) % s->numFrames; } } |