Skip to content

Commit

Permalink
SCUMM HE: BB01 competitive online play: random bounces (#4920)
Browse files Browse the repository at this point in the history
Co-authored-by: shkupfer <shkupfer@ncsu.edu>
  • Loading branch information
shkupfer and shkupfer committed Apr 21, 2023
1 parent 1d6b4b7 commit ad96386
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engines/scumm/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)");
Expand Down

0 comments on commit ad96386

Please sign in to comment.