mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-16 00:44:59 +00:00
migrate to vite (#16)
This commit is contained in:
parent
1373f12ab4
commit
5025065188
165 changed files with 56708 additions and 8931 deletions
|
|
@ -263,7 +263,10 @@ export class GameConnection extends EventEmitter<GameConnectionEvents> {
|
|||
const dv = new DataView(msg.buffer, msg.byteOffset, msg.byteLength);
|
||||
const seq = dv.getUint32(1, true);
|
||||
if (seq !== this.clientConnectSequence) {
|
||||
connLog.debug({ expected: this.clientConnectSequence, got: seq }, "ChallengeReject sequence mismatch, ignoring");
|
||||
connLog.debug(
|
||||
{ expected: this.clientConnectSequence, got: seq },
|
||||
"ChallengeReject sequence mismatch, ignoring",
|
||||
);
|
||||
return;
|
||||
}
|
||||
let reason = "Challenge rejected";
|
||||
|
|
@ -369,10 +372,17 @@ export class GameConnection extends EventEmitter<GameConnectionEvents> {
|
|||
const dv = new DataView(msg.buffer, msg.byteOffset, msg.byteLength);
|
||||
const serverSeq = dv.getUint32(1, true);
|
||||
const clientSeq = dv.getUint32(5, true);
|
||||
if (serverSeq !== this.serverConnectSequence || clientSeq !== this.clientConnectSequence) {
|
||||
if (
|
||||
serverSeq !== this.serverConnectSequence ||
|
||||
clientSeq !== this.clientConnectSequence
|
||||
) {
|
||||
connLog.debug(
|
||||
{ expectedServer: this.serverConnectSequence, gotServer: serverSeq,
|
||||
expectedClient: this.clientConnectSequence, gotClient: clientSeq },
|
||||
{
|
||||
expectedServer: this.serverConnectSequence,
|
||||
gotServer: serverSeq,
|
||||
expectedClient: this.clientConnectSequence,
|
||||
gotClient: clientSeq,
|
||||
},
|
||||
"ConnectReject sequence mismatch, ignoring",
|
||||
);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue