[Scummvm-git-logs] scummvm master -> 3722a21825386916e4c9adeea7416c71d93a5d7e

digitall noreply at scummvm.org
Sat Oct 5 23:00:22 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:
3722a21825 DGDS: Fix Overflow Conversion GCC Compiler Warnings


Commit: 3722a21825386916e4c9adeea7416c71d93a5d7e
    https://github.com/scummvm/scummvm/commit/3722a21825386916e4c9adeea7416c71d93a5d7e
Author: D G Turner (digitall at scummvm.org)
Date: 2024-10-05T23:58:53+01:00

Commit Message:
DGDS: Fix Overflow Conversion GCC Compiler Warnings

These were emitted if -Woverflow was passed to GCC.

Changed paths:
    engines/dgds/dragon_arcade.cpp


diff --git a/engines/dgds/dragon_arcade.cpp b/engines/dgds/dragon_arcade.cpp
index 3614519ae5e..f9490834d01 100644
--- a/engines/dgds/dragon_arcade.cpp
+++ b/engines/dgds/dragon_arcade.cpp
@@ -251,7 +251,7 @@ int16 DragonArcade::checkBulletCollision(int16 num) {
 					} else {
 						_flag40ef = false;
 					}
-					_npcState[i].byte12 = 0xf8;
+					_npcState[i].byte12 = -8;
 					_npcState[i].ttmPage = 33;
 					break;
 				case 3:
@@ -677,7 +677,7 @@ void DragonArcade::arcade4085() {
 				if (isNpcInsideXRange(i))
 					playSfx(0x1d);
 			}
-			_npcState[i].byte12 = 0xfb;
+			_npcState[i].byte12 = -5;
 			if (_npcState[0].health && _npcState[i].xx - 0x10 <= _npcState[0].xx &&
 				_npcState[0].xx <= _npcState[i].xx + 0x37) {
 				bladeTakeHit();
@@ -1087,7 +1087,7 @@ void DragonArcade::arcade3e96() {
 			if (_npcState[i].ttmPage == 2 && isNpcInsideXRange(i)) {
 				playSfx(0x5a);
 			}
-			_npcState[i].byte12 = 0xfc;
+			_npcState[i].byte12 = -4;
 			if (_npcState[i].ttmPage < 15 &&
 				_npcState[i].xx - 16 <= _npcState[0].xx &&
 				_npcState[0].xx <= _npcState[i].xx + 12 && _npcState[0].health != 0 &&




More information about the Scummvm-git-logs mailing list