[Scummvm-git-logs] scummvm master -> 33d90350995c8b3f855023e317b47532d98c403f
LittleToonCat
noreply at scummvm.org
Thu Jun 6 03:58:10 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:
33d9035099 SCUMM HE: Handle disconnect message from server.
Commit: 33d90350995c8b3f855023e317b47532d98c403f
https://github.com/scummvm/scummvm/commit/33d90350995c8b3f855023e317b47532d98c403f
Author: Little Cat (toontownlittlecat at gmail.com)
Date: 2024-06-06T00:57:57-03:00
Commit Message:
SCUMM HE: Handle disconnect message from server.
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 e270c7aa794..0782274fd02 100644
--- a/engines/scumm/he/net/net_lobby.cpp
+++ b/engines/scumm/he/net/net_lobby.cpp
@@ -126,6 +126,11 @@ void Lobby::processLine(Common::String line) {
Common::String command = root["cmd"]->asString();
if (command == "heartbeat") {
handleHeartbeat();
+ } else if (command == "disconnect") {
+ int type = root["type"]->asIntegerNumber();
+ Common::String message = root["message"]->asString();
+ systemAlert(type, message);
+ disconnect();
} else if (command == "login_resp") {
int errorCode = root["error_code"]->asIntegerNumber();
int userId = root["id"]->asIntegerNumber();
More information about the Scummvm-git-logs
mailing list