[Scummvm-git-logs] scummvm master -> 751c703f24e24530ca1feebd5a6c5176762d4bbd
digitall
547637+digitall at users.noreply.github.com
Wed May 20 13:46:54 UTC 2020
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:
751c703f24 PETKA: Fix Missing Break Statements in Object Class
Commit: 751c703f24e24530ca1feebd5a6c5176762d4bbd
https://github.com/scummvm/scummvm/commit/751c703f24e24530ca1feebd5a6c5176762d4bbd
Author: D G Turner (digitall at scummvm.org)
Date: 2020-05-20T14:42:30+01:00
Commit Message:
PETKA: Fix Missing Break Statements in Object Class
These are triggering GCC compiler warnings. They could be intentional
fallthrough, needing a comment to surpress the warning.
However, looking at the logic, this does not look likely so adding the
missing breaks instead.
Changed paths:
engines/petka/objects/object.cpp
diff --git a/engines/petka/objects/object.cpp b/engines/petka/objects/object.cpp
index fc54747147..7ec192da9d 100644
--- a/engines/petka/objects/object.cpp
+++ b/engines/petka/objects/object.cpp
@@ -188,6 +188,7 @@ void QMessageObject::processMessage(const QMessage &msg) {
break;
case kSetInv:
g_vm->getQSystem()->_case->setInv(msg.sender->_id, msg.objId);
+ break;
case kAvi: {
Common::String videoName = g_vm->resMgr()->findResourceName((uint16) msg.arg1);
g_vm->playVideo(g_vm->openFile(videoName, false));
@@ -212,6 +213,7 @@ void QMessageObject::processMessage(const QMessage &msg) {
_isActive = 0;
}
g_vm->videoSystem()->makeAllDirty();
+ break;
case kDialog:
g_vm->getQSystem()->_mainInterface->_dialog.start(msg.arg1, this);
break;
More information about the Scummvm-git-logs
mailing list