diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-17 00:49:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-17 00:49:45 +0300 |
commit | 1307b14ff24f3935fa58aef405ffb246c0741336 (patch) | |
tree | be0ebcda4a9b99a3b290fca9d8a210b18400b73a /src/being | |
parent | b10cb3ac1189eaa5f41184527eee342584231f84 (diff) | |
download | plus-1307b14ff24f3935fa58aef405ffb246c0741336.tar.gz plus-1307b14ff24f3935fa58aef405ffb246c0741336.tar.bz2 plus-1307b14ff24f3935fa58aef405ffb246c0741336.tar.xz plus-1307b14ff24f3935fa58aef405ffb246c0741336.zip |
Remove getter for charServerHandler.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/being.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 68420f742..02d235e8d 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -345,16 +345,16 @@ void Being::setSubtype(const uint16_t subtype, const uint8_t look) id = -100; // TRANSLATORS: default race name setRaceName(_("Human")); - if (Net::getCharServerHandler()) - setSprite(Net::getCharServerHandler()->baseSprite(), id); + if (charServerHandler) + setSprite(charServerHandler->baseSprite(), id); } else { const ItemInfo &info = ItemDB::get(id); setRaceName(info.getName()); - if (Net::getCharServerHandler()) + if (charServerHandler) { - setSprite(Net::getCharServerHandler()->baseSprite(), + setSprite(charServerHandler->baseSprite(), id, info.getColor(mLook)); } } @@ -1972,7 +1972,7 @@ void Being::updateSprite(const unsigned int slot, const int id, std::string color, const unsigned char colorId, const bool isWeapon, const bool isTempSprite) { - if (slot >= Net::getCharServerHandler()->maxSprite()) + if (slot >= charServerHandler->maxSprite()) return; if (slot >= static_cast<unsigned int>(mSpriteIDs.size())) @@ -1987,7 +1987,7 @@ void Being::setSprite(const unsigned int slot, const int id, std::string color, const unsigned char colorId, const bool isWeapon, const bool isTempSprite) { - if (slot >= Net::getCharServerHandler()->maxSprite()) + if (slot >= charServerHandler->maxSprite()) return; if (slot >= static_cast<unsigned int>(size())) @@ -2553,7 +2553,7 @@ void Being::recalcSpritesOrder() if (mAction == BeingAction::DEAD) dir = 9; - const unsigned int hairSlot = Net::getCharServerHandler()->hairSprite(); + const unsigned int hairSlot = charServerHandler->hairSprite(); for (size_t slot = 0; slot < sz; slot ++) { |