diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-17 11:50:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-17 11:50:28 +0300 |
commit | 616ab2676cc932ab59152c510d584c429090987a (patch) | |
tree | 9184b8836b51a073f67ee60a46043084687207a7 /src/net/tmwa/buysellhandler.cpp | |
parent | 4b397f4c8e2b0c8d636cc2782d9571567473975b (diff) | |
download | plus-616ab2676cc932ab59152c510d584c429090987a.tar.gz plus-616ab2676cc932ab59152c510d584c429090987a.tar.bz2 plus-616ab2676cc932ab59152c510d584c429090987a.tar.xz plus-616ab2676cc932ab59152c510d584c429090987a.zip |
Remove getter for serverFeatures.
Diffstat (limited to 'src/net/tmwa/buysellhandler.cpp')
-rw-r--r-- | src/net/tmwa/buysellhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tmwa/buysellhandler.cpp b/src/net/tmwa/buysellhandler.cpp index 2b34e0a83..5de7b0556 100644 --- a/src/net/tmwa/buysellhandler.cpp +++ b/src/net/tmwa/buysellhandler.cpp @@ -96,7 +96,7 @@ void BuySellHandler::processNpcBuy(Net::MessageIn &msg) { msg.readInt16("len"); unsigned int sz = 11; - if (Net::getServerFeatures()->haveItemColors()) + if (serverFeatures->haveItemColors()) sz += 1; const unsigned int n_items = (msg.getLength() - 4U) / sz; mBuyDialog = new BuyDialog(mNpcId); @@ -109,7 +109,7 @@ void BuySellHandler::processNpcBuy(Net::MessageIn &msg) msg.readUInt8("type"); const int itemId = msg.readInt16("item id"); uint8_t color = 1; - if (Net::getServerFeatures()->haveItemColors()) + if (serverFeatures->haveItemColors()) color = msg.readUInt8("item color"); mBuyDialog->addItem(itemId, color, 0, value); } |