summaryrefslogtreecommitdiff
path: root/src/net/tmwa/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-02 01:51:25 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-02 01:51:25 +0200
commit582428edf9e40db0d1ed7b78222562a7a5031fe4 (patch)
tree2a9f4b1303a3647e3d7bf4599e85ebd358159b4d /src/net/tmwa/charserverhandler.cpp
parent218dbbd7ce5415fe8c26857f06c5907c7cc6d175 (diff)
downloadmv-582428edf9e40db0d1ed7b78222562a7a5031fe4.tar.gz
mv-582428edf9e40db0d1ed7b78222562a7a5031fe4.tar.bz2
mv-582428edf9e40db0d1ed7b78222562a7a5031fe4.tar.xz
mv-582428edf9e40db0d1ed7b78222562a7a5031fe4.zip
Add serverversion checks. And disable some advanced features in old servers.
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r--src/net/tmwa/charserverhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index a1b7c83b8..35cca6f07 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -83,7 +83,7 @@ void CharServerHandler::handleMessage(Net::MessageIn &msg)
int slots = msg.readInt16();
if (slots > 0 && slots < 30)
loginData.characterSlots = slots;
- bool version = msg.readInt8() == 1;
+ bool version = msg.readInt8() == 1 && serverVersion > 0;
msg.skip(17); // Unused
delete_all(mCharacters);