diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-06-23 06:34:16 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-06-23 06:34:16 -0300 |
| commit | bdfcbb2f0edee2679bfe588df55e9f99bd837510 (patch) | |
| tree | 4aea2b1039ea4988debd054c024eefe9c3021dc4 /src/communication.cc | |
| parent | c4dfe97e95846b43c578b3be35d0ef69f9b50e94 (diff) | |
| download | game-bdfcbb2f0edee2679bfe588df55e9f99bd837510.tar.gz game-bdfcbb2f0edee2679bfe588df55e9f99bd837510.zip | |
`receiving.cc`
Diffstat (limited to 'src/communication.cc')
| -rw-r--r-- | src/communication.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/communication.cc b/src/communication.cc index 71a05d3..799cd42 100644 --- a/src/communication.cc +++ b/src/communication.cc @@ -920,7 +920,7 @@ bool HandleLogin(TConnection *Connection){ TReadBuffer InputBuffer(Connection->InData, Connection->InDataSize); try{ uint8 Command = InputBuffer.readByte(); - if(Command != 10){ + if(Command != CL_CMD_LOGIN_REQUEST){ print(3, "Ungültiges Init-Kommando %d.\n", Command); return false; } @@ -1104,7 +1104,7 @@ bool HandleLogin(TConnection *Connection){ TWriteBuffer WriteBuffer(Connection->InData + 2, sizeof(Connection->InData) - 2); try{ - WriteBuffer.writeByte(11); + WriteBuffer.writeByte(CL_CMD_LOGIN); WriteBuffer.writeWord((int)TerminalType); WriteBuffer.writeWord((int)TerminalVersion); WriteBuffer.writeQuad(Slot->CharacterID); |
