aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/scumm/he/moonbase/net_main.cpp2
-rw-r--r--engines/scumm/he/moonbase/net_main.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/engines/scumm/he/moonbase/net_main.cpp b/engines/scumm/he/moonbase/net_main.cpp
index 5a8323e63c..8219db960d 100644
--- a/engines/scumm/he/moonbase/net_main.cpp
+++ b/engines/scumm/he/moonbase/net_main.cpp
@@ -36,6 +36,7 @@ Net::Net(ScummEngine_v100he *vm) : _latencyTime(1), _fakeLatency(false), _vm(vm)
_tmpbuffer = (byte *)malloc(MAX_PACKET_SIZE);
_myUserId = -1;
+ _myPlayerKey = -1;
_lastResult = 0;
_sessionsBeingQueried = false;
@@ -109,6 +110,7 @@ void Net::addUserCallback(Common::JSONValue *response) {
if (info.contains("userid")) {
_myUserId = info["userid"]->asIntegerNumber();
+ _myPlayerKey = info["playerkey"]->asIntegerNumber();
}
debug(1, "addUserCallback: got: '%s' as %d", response->stringify().c_str(), _myUserId);
}
diff --git a/engines/scumm/he/moonbase/net_main.h b/engines/scumm/he/moonbase/net_main.h
index 093cd0fdbf..6a3ac94eab 100644
--- a/engines/scumm/he/moonbase/net_main.h
+++ b/engines/scumm/he/moonbase/net_main.h
@@ -116,6 +116,7 @@ public:
byte *_tmpbuffer;
int _myUserId;
+ int _myPlayerKey;
int _lastResult;