summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-16 20:53:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-16 20:53:20 +0300
commit00a9e49121dfdd706607ceb35fc4dcba4ffbf80c (patch)
tree3b17c76ec3a04f5ecee25c2c997f3d4d0674cca6 /src
parente873e33f470ef65375a64652bc4d4dbbb0297172 (diff)
downloadmv-00a9e49121dfdd706607ceb35fc4dcba4ffbf80c.tar.gz
mv-00a9e49121dfdd706607ceb35fc4dcba4ffbf80c.tar.bz2
mv-00a9e49121dfdd706607ceb35fc4dcba4ffbf80c.tar.xz
mv-00a9e49121dfdd706607ceb35fc4dcba4ffbf80c.zip
Fix some server features usage.
Diffstat (limited to 'src')
-rw-r--r--src/net/tmwa/charserverhandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index b9997320a..132fd0cea 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -33,6 +33,7 @@
#include "net/character.h"
#include "net/logindata.h"
#include "net/net.h"
+#include "net/serverfeatures.h"
#include "net/tmwa/attrs.h"
#include "net/tmwa/gamehandler.h"
@@ -279,11 +280,11 @@ void CharServerHandler::newCharacter(const std::string &name, const int slot,
outMsg.writeInt8(static_cast<int8_t>(hairColor), "hair color");
outMsg.writeInt8(0, "unused");
outMsg.writeInt8(static_cast<int8_t>(hairstyle), "hair style");
- if (serverVersion >= 9)
+ if (Net::getServerFeatures()->haveLookSelection())
outMsg.writeInt8(look, "look");
else
outMsg.writeInt8(0, "unused");
- if (serverVersion >= 2)
+ if (Net::getServerFeatures()->haveRaceSelection())
outMsg.writeInt8(race, "class");
}