[Scummvm-git-logs] scummvm master -> c55be5936cd6b779426a4ddd251f51fa8bf1bcfd

digitall noreply at scummvm.org
Tue May 2 20:30:21 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:
c55be5936c WATCHMAKER: Fix Warnings from Likely Incorrect Fallthrough in Switch


Commit: c55be5936cd6b779426a4ddd251f51fa8bf1bcfd
    https://github.com/scummvm/scummvm/commit/c55be5936cd6b779426a4ddd251f51fa8bf1bcfd
Author: D G Turner (digitall at scummvm.org)
Date: 2023-05-02T21:28:15+01:00

Commit Message:
WATCHMAKER: Fix Warnings from Likely Incorrect Fallthrough in Switch

This should be checked, but the original code looks wrong.

Changed paths:
    engines/watchmaker/ll/ll_anim.cpp


diff --git a/engines/watchmaker/ll/ll_anim.cpp b/engines/watchmaker/ll/ll_anim.cpp
index fe432385f3b..3640ae4b34a 100644
--- a/engines/watchmaker/ll/ll_anim.cpp
+++ b/engines/watchmaker/ll/ll_anim.cpp
@@ -888,8 +888,10 @@ void ProcessATF(WGame &game, int32 an, int32 atf) {
 		break;
 	case ATFM_INCFRAME:
 		SetMeshMaterialMovieFrame(h->sub[in - 1].ptr, +1, 1);
+		break;
 	case ATFM_DECFRAME:
 		SetMeshMaterialMovieFrame(h->sub[in - 1].ptr, -1, 1);
+		break;
 	case ATFM_START_MOVIE:
 		SetMeshMaterialMovieFrame(h->sub[in - 1].ptr, 0, 1);
 		ChangeMeshMaterialFlag(h->sub[in - 1].ptr, -1, T3D_MATERIAL_MOVIEPAUSED);




More information about the Scummvm-git-logs mailing list