diff options
author | richiesams | 2013-08-24 01:11:10 -0500 |
---|---|---|
committer | richiesams | 2013-08-24 01:11:10 -0500 |
commit | 5ff032c27d5110ebd8b6f73e0c822eba2245246b (patch) | |
tree | d9bdea9d9060fe681478ec0f20734a58e3f0e7aa /engines | |
parent | af762dc41799bd08138a1f8fbcb7b441c4a03480 (diff) | |
download | scummvm-rg350-5ff032c27d5110ebd8b6f73e0c822eba2245246b.tar.gz scummvm-rg350-5ff032c27d5110ebd8b6f73e0c822eba2245246b.tar.bz2 scummvm-rg350-5ff032c27d5110ebd8b6f73e0c822eba2245246b.zip |
ZVISION: Cast completeFrame and frameNumber to int so their difference can go negative
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/rlf_animation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/zvision/rlf_animation.cpp b/engines/zvision/rlf_animation.cpp index c95a8640c1..ff855a1a39 100644 --- a/engines/zvision/rlf_animation.cpp +++ b/engines/zvision/rlf_animation.cpp @@ -168,9 +168,9 @@ const uint16 *RlfAnimation::getFrameData(uint frameNumber) { } uint closestFrame = _currentFrame; - uint distance = ABS(_currentFrame - frameNumber); + int distance = ABS(_currentFrame - (int)frameNumber); for (Common::List<uint>::const_iterator iter = _completeFrames.begin(); iter != _completeFrames.end(); iter++) { - uint newDistance = ABS((*iter) - frameNumber); + int newDistance = ABS((int)(*iter) - (int)frameNumber); if (closestFrame == -1 || newDistance < distance) { closestFrame = (*iter); distance = newDistance; |