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/net/eathena/inventoryhandler.cpp | |
parent | d54c371ad9d3c8a019d7d6bdc0262cd352a06ae5 (diff) | |
download | mv-36bf685462f371b306f51a29331e7a1d86ce3a91.tar.gz mv-36bf685462f371b306f51a29331e7a1d86ce3a91.tar.bz2 mv-36bf685462f371b306f51a29331e7a1d86ce3a91.tar.xz mv-36bf685462f371b306f51a29331e7a1d86ce3a91.zip |
add server feature haveItemColors.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 610b27194..ccc303cdf 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -29,6 +29,9 @@ #include "listeners/arrowslistener.h" +#include "net/net.h" +#include "net/serverfeatures.h" + #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" @@ -376,7 +379,7 @@ void InventoryHandler::processPlayerInventoryAdd(Net::MessageIn &msg) if (item && item->getId() == itemId) amount += item->getQuantity(); - if (serverVersion < 1 && identified > 1) + if (!Net::getServerFeatures()->haveItemColors() && identified > 1) identified = 1; inventory->setItem(index, itemId, amount, refine, |