[Scummvm-git-logs] scummvm master -> 7ee313fd73a9b5ba31d593fae1af2798c46b7c43

dreammaster noreply at scummvm.org
Sun Oct 6 04:48:04 UTC 2024


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:
7ee313fd73 M4: RIDDLE: Fix spinning objects in room 303


Commit: 7ee313fd73a9b5ba31d593fae1af2798c46b7c43
    https://github.com/scummvm/scummvm/commit/7ee313fd73a9b5ba31d593fae1af2798c46b7c43
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2024-10-05T21:47:30-07:00

Commit Message:
M4: RIDDLE: Fix spinning objects in room 303

First in-game bugfix \o/

Changed paths:
    engines/m4/graphics/gr_series.cpp


diff --git a/engines/m4/graphics/gr_series.cpp b/engines/m4/graphics/gr_series.cpp
index 796deb3e568..746206cf108 100644
--- a/engines/m4/graphics/gr_series.cpp
+++ b/engines/m4/graphics/gr_series.cpp
@@ -302,7 +302,7 @@ machine *series_play(const char *seriesName, frac16 layer, uint32 flags, int16 t
 machine *series_ranged_play(const char *seriesName, int32 loopCount, uint32 flags,
 		int32 firstFrame, int32 lastFrame, int32 s, uint32 layer,
 		int32 frameRate, int32 trigger, bool stickWhenDone) {
-	if (loopCount != 1)
+	if (loopCount == 1)
 		loopCount = 0;
 	if (stickWhenDone)
 		flags |= 0x10;
@@ -327,7 +327,7 @@ machine *series_plain_play(const char *seriesName, int32 loopCount, uint32 flags
 		int32 s, int32 layer, int32 frameRate, int32 trigger, bool stickWhenDone) {
 	if (stickWhenDone)
 		flags |= 0x10;
-	if (loopCount != 1)
+	if (loopCount == 1)
 		loopCount = 0;
 
 	return series_play(seriesName, layer, flags, trigger, frameRate, loopCount, s);




More information about the Scummvm-git-logs mailing list