[Scummvm-git-logs] scummvm master -> 614507859e56b60f0733c7baa02c502b722fa7c7
digitall
noreply at scummvm.org
Sat Oct 7 19:16:11 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:
614507859e SCUMM: Fix Unused Variable GCC Compiler Warning
Commit: 614507859e56b60f0733c7baa02c502b722fa7c7
https://github.com/scummvm/scummvm/commit/614507859e56b60f0733c7baa02c502b722fa7c7
Author: D G Turner (digitall at scummvm.org)
Date: 2023-10-07T20:15:45+01:00
Commit Message:
SCUMM: Fix Unused Variable GCC Compiler Warning
Changed paths:
engines/scumm/script.cpp
diff --git a/engines/scumm/script.cpp b/engines/scumm/script.cpp
index 94b26d6c445..332f7f232f0 100644
--- a/engines/scumm/script.cpp
+++ b/engines/scumm/script.cpp
@@ -649,11 +649,11 @@ int ScummEngine::readVar(uint var) {
switch (swingType) {
case 2: // Line drive or grounder swing
powerStat = vm.localvar[_currentScript][var];
- powerStatModified = 20 + vm.localvar[_currentScript][var] * 4 / 5;
+ powerStatModified = 20 + powerStat * 4 / 5;
return powerStatModified;
case 1: // Power swing
powerStat = vm.localvar[_currentScript][var];
- powerStatModified = 20 + vm.localvar[_currentScript][var] * 7 / 10;;
+ powerStatModified = 20 + powerStat * 7 / 10;;
return powerStatModified;
default:
break;
More information about the Scummvm-git-logs
mailing list