diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-16 20:22:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-16 20:22:52 +0300 |
commit | 36bf685462f371b306f51a29331e7a1d86ce3a91 (patch) | |
tree | 79ef1ffdb59524f9fec7ce2dcb3e1cf7f490c70f /src/flooritem.cpp | |
parent | d54c371ad9d3c8a019d7d6bdc0262cd352a06ae5 (diff) | |
download | manaverse-36bf685462f371b306f51a29331e7a1d86ce3a91.tar.gz manaverse-36bf685462f371b306f51a29331e7a1d86ce3a91.tar.bz2 manaverse-36bf685462f371b306f51a29331e7a1d86ce3a91.tar.xz manaverse-36bf685462f371b306f51a29331e7a1d86ce3a91.zip |
add server feature haveItemColors.
Diffstat (limited to 'src/flooritem.cpp')
-rw-r--r-- | src/flooritem.cpp | 5 |
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(); |