[Scummvm-git-logs] scummvm master -> 66994580dc0ddf5b85f5a36142f219803149126c
LittleToonCat
noreply at scummvm.org
Fri Apr 21 07:52: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:
66994580dc SCUMM HE: Reset "no power up" flag after a game.
Commit: 66994580dc0ddf5b85f5a36142f219803149126c
https://github.com/scummvm/scummvm/commit/66994580dc0ddf5b85f5a36142f219803149126c
Author: Little Cat (toontownlittlecat at gmail.com)
Date: 2023-04-21T04:51:58-03:00
Commit Message:
SCUMM HE: Reset "no power up" flag after a game.
Changed paths:
engines/scumm/he/net/net_lobby.cpp
diff --git a/engines/scumm/he/net/net_lobby.cpp b/engines/scumm/he/net/net_lobby.cpp
index e3579a043df..ee53b03d9c5 100644
--- a/engines/scumm/he/net/net_lobby.cpp
+++ b/engines/scumm/he/net/net_lobby.cpp
@@ -1001,6 +1001,12 @@ void Lobby::gameFinished() {
_inGame = false;
_vm->_net->closeProvider();
+ // Bugfix: After finishing a game on an area with power ups disabled, the variable
+ // for it (689) does not reset. This causes offline games to play without power ups at all,
+ // so let's reset it ourselves.
+ if (_vm->_game.id == GID_BASEBALL2001)
+ _vm->writeVar(689, 0);
+
Common::JSONObject gameFinishedRequest;
gameFinishedRequest.setVal("cmd", new Common::JSONValue("game_finished"));
More information about the Scummvm-git-logs
mailing list