[Scummvm-git-logs] scummvm master -> ad9638649af704b3f06bff714464b2afc5832f40
shkupfer
noreply at scummvm.org
Fri Apr 21 23:35:56 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:
ad9638649a SCUMM HE: BB01 competitive online play: random bounces (#4920)
Commit: ad9638649af704b3f06bff714464b2afc5832f40
https://github.com/scummvm/scummvm/commit/ad9638649af704b3f06bff714464b2afc5832f40
Author: shkupfer (shkupf at gmail.com)
Date: 2023-04-21T19:35:52-04:00
Commit Message:
SCUMM HE: BB01 competitive online play: random bounces (#4920)
Co-authored-by: shkupfer <shkupfer at ncsu.edu>
Changed paths:
engines/scumm/script.cpp
diff --git a/engines/scumm/script.cpp b/engines/scumm/script.cpp
index 4f244c8cf08..47942c9ad21 100644
--- a/engines/scumm/script.cpp
+++ b/engines/scumm/script.cpp
@@ -567,6 +567,12 @@ int ScummEngine::readVar(uint var) {
!(_currentRoom == 4 && (vm.slot[_currentScript].number == 2150 || vm.slot[_currentScript].number == 2208 || vm.slot[_currentScript].number == 2210))) {
return 263;
}
+ // Mod for Backyard Baseball 2001 online competitive play: allow random bounces
+ // Normally they only happen offline; this script checks var399, here we tell this
+ // script that we're not in online play even if we are
+ if (_game.id == GID_BASEBALL2001 && vm.slot[_currentScript].number == 39 && var == 399) {
+ return 0;
+ }
}
#endif
assertRange(0, var, _numVariables - 1, "variable (reading)");
More information about the Scummvm-git-logs
mailing list