[Scummvm-git-logs] scummvm master -> 909719c8fcedaa87e1357c989b1073870fefba6a

shkupfer noreply at scummvm.org
Mon Sep 23 12:35:58 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:
909719c8fc SCUMM HE: Update comment on BB01 stat buffs fix (#6151)


Commit: 909719c8fcedaa87e1357c989b1073870fefba6a
    https://github.com/scummvm/scummvm/commit/909719c8fcedaa87e1357c989b1073870fefba6a
Author: shkupfer (shkupf at gmail.com)
Date: 2024-09-23T08:35:55-04:00

Commit Message:
SCUMM HE: Update comment on BB01 stat buffs fix (#6151)

Changed paths:
    engines/scumm/script_v6.cpp


diff --git a/engines/scumm/script_v6.cpp b/engines/scumm/script_v6.cpp
index 71f3c3f77ba..6b31b539b24 100644
--- a/engines/scumm/script_v6.cpp
+++ b/engines/scumm/script_v6.cpp
@@ -639,7 +639,8 @@ void ScummEngine_v6::o6_eq() {
 	// The player stat adjustments that should get applied in certain conditions (i.e. when two siblings are on the same team)
 	// don't get applied properly for the away (peer) team in online play. This results in each team's game using a different
 	// version of players' stats, leading to unfair play and potential desyncs. This hack ensures the away team's game doesn't
-	// exit the script before applying these stat adjustments.
+	// exit the script before applying these stat adjustments. The script checks whether the game is being played online before
+	// this, such that this code doesn't execute for offline play.
 	if (_game.id == GID_BASEBALL2001 && _currentRoom == 27 && vm.slot[_currentScript].number == 2346) {
 		int offset = _scriptPointer - _scriptOrgPointer;
 		if (offset == 196137) {




More information about the Scummvm-git-logs mailing list