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

sev- sev at scummvm.org
Fri Aug 11 20:54:07 CEST 2017


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:
b840320c5b SCUMM: Moonbase: Mark original bug as fall through to silence GCC 7 warning


Commit: b840320c5bc532973bb622bbe5c34b1284734b63
    https://github.com/scummvm/scummvm/commit/b840320c5bc532973bb622bbe5c34b1284734b63
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-08-11T20:53:21+02:00

Commit Message:
SCUMM: Moonbase: Mark original bug as fall through to silence GCC 7 warning

Changed paths:
    engines/scumm/he/moonbase/ai_targetacquisition.cpp


diff --git a/engines/scumm/he/moonbase/ai_targetacquisition.cpp b/engines/scumm/he/moonbase/ai_targetacquisition.cpp
index a6a4e8e..53acffa 100644
--- a/engines/scumm/he/moonbase/ai_targetacquisition.cpp
+++ b/engines/scumm/he/moonbase/ai_targetacquisition.cpp
@@ -261,7 +261,8 @@ float Sortie::calcH() {
 		if ((*i)->getState() == DUS_ON) {
 			switch ((*i)->getType()) {
 			case DUT_ANTI_AIR:
-				retValue += 1;
+				retValue += 1; // Is it bug in the original? Fixing it may break replay compatibility
+				// fall through
 
 			case DUT_MINE:
 				retValue += 1;





More information about the Scummvm-git-logs mailing list