From 402f8a5fe2b2b6cab271657e7d51c0f723f38ea8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 7 Apr 2011 13:40:22 +0300 Subject: Send to tmw based server client version as 1. --- src/net/tmwa/charserverhandler.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/net/tmwa/charserverhandler.cpp') diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp index c714c6043..545c36611 100644 --- a/src/net/tmwa/charserverhandler.cpp +++ b/src/net/tmwa/charserverhandler.cpp @@ -471,7 +471,10 @@ void CharServerHandler::connect() outMsg.writeInt32(token.session_ID2); // [Fate] The next word is unused by the old char server, so we squeeze in // mana client version information - outMsg.writeInt16(CLIENT_PROTOCOL_VERSION); + if (serverVersion > 0) + outMsg.writeInt16(CLIENT_PROTOCOL_VERSION); + else + outMsg.writeInt16(CLIENT_TMW_PROTOCOL_VERSION); outMsg.writeInt8((token.sex == GENDER_MALE) ? 1 : 0); // We get 4 useless bytes before the real answer comes in (what are these?) -- cgit v1.2.3-70-g09d2