[Scummvm-git-logs] scummvm master -> 1b05f7ec622db8c4d7525295d0d3195d8738bb0d
OMGPizzaGuy
noreply at scummvm.org
Mon Jan 9 23:29:23 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
1b05f7ec62 ULTIMA8: Fix check for item animation on type 4
Commit: 1b05f7ec622db8c4d7525295d0d3195d8738bb0d
https://github.com/scummvm/scummvm/commit/1b05f7ec622db8c4d7525295d0d3195d8738bb0d
Author: Matthew Jimenez (matthew.jimenez at outlook.com)
Date: 2023-01-09T17:27:52-06:00
Commit Message:
ULTIMA8: Fix check for item animation on type 4
Changed paths:
engines/ultima/ultima8/world/item.cpp
diff --git a/engines/ultima/ultima8/world/item.cpp b/engines/ultima/ultima8/world/item.cpp
index b8282cd8f6a..76a7756bd07 100644
--- a/engines/ultima/ultima8/world/item.cpp
+++ b/engines/ultima/ultima8/world/item.cpp
@@ -1811,7 +1811,7 @@ void Item::animateItem() {
case 4:
// Randomly start animating, with chance of 1/(animdata + 2)
// once animating, go through all frames.
- if (_frame || rs.getRandomNumber(anim_data + 1)) {
+ if (_frame || rs.getRandomNumber(anim_data + 1) == 0) {
_frame++;
if (shp && _frame >= shp->frameCount())
_frame = 0;
More information about the Scummvm-git-logs
mailing list