diff options
author | Eugene Sandulenko | 2019-11-07 11:44:27 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-07 14:43:37 +0100 |
commit | c17bf778e2ee9e7462244f030b7e7dedac47c471 (patch) | |
tree | e6e0a31c5acd37538df8cde874cf614dc6e1ab0e /engines | |
parent | 4311eac027c365e66976afa19166882ba9b2166f (diff) | |
download | scummvm-rg350-c17bf778e2ee9e7462244f030b7e7dedac47c471.tar.gz scummvm-rg350-c17bf778e2ee9e7462244f030b7e7dedac47c471.tar.bz2 scummvm-rg350-c17bf778e2ee9e7462244f030b7e7dedac47c471.zip |
SCUMM HE: MBC: Store generated player key
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/he/moonbase/net_main.cpp | 2 | ||||
-rw-r--r-- | engines/scumm/he/moonbase/net_main.h | 1 |
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; |