summaryrefslogtreecommitdiff
path: root/src/flooritem.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-16 20:22:52 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-16 20:22:52 +0300
commit36bf685462f371b306f51a29331e7a1d86ce3a91 (patch)
tree79ef1ffdb59524f9fec7ce2dcb3e1cf7f490c70f /src/flooritem.cpp
parentd54c371ad9d3c8a019d7d6bdc0262cd352a06ae5 (diff)
downloadmv-36bf685462f371b306f51a29331e7a1d86ce3a91.tar.gz
mv-36bf685462f371b306f51a29331e7a1d86ce3a91.tar.bz2
mv-36bf685462f371b306f51a29331e7a1d86ce3a91.tar.xz
mv-36bf685462f371b306f51a29331e7a1d86ce3a91.zip
add server feature haveItemColors.
Diffstat (limited to 'src/flooritem.cpp')
-rw-r--r--src/flooritem.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/flooritem.cpp b/src/flooritem.cpp
index 1d0b9948d..f3e7f66d2 100644
--- a/src/flooritem.cpp
+++ b/src/flooritem.cpp
@@ -37,6 +37,9 @@
#include "resources/map/map.h"
+#include "net/net.h"
+#include "net/serverfeatures.h"
+
#include "debug.h"
extern int serverVersion;
@@ -101,7 +104,7 @@ const ItemInfo &FloorItem::getInfo() const
std::string FloorItem::getName() const
{
const ItemInfo &info = ItemDB::get(mItemId);
- if (serverVersion > 0)
+ if (Net::getServerFeatures()->haveItemColors())
return info.getName(mColor);
else
return info.getName();