Skip to content
Permalink
Browse files

SCUMM HE: MBC: Store generated player key

  • Loading branch information...
sev- committed Nov 7, 2019
1 parent 4311eac commit c17bf778e2ee9e7462244f030b7e7dedac47c471
Showing with 3 additions and 0 deletions.
  1. +2 −0 engines/scumm/he/moonbase/net_main.cpp
  2. +1 −0 engines/scumm/he/moonbase/net_main.h
@@ -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);
}
@@ -116,6 +116,7 @@ class Net {
byte *_tmpbuffer;

int _myUserId;
int _myPlayerKey;

int _lastResult;

0 comments on commit c17bf77

Please sign in to comment.
You can’t perform that action at this time.