summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 00:49:45 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 00:49:45 +0300
commit1307b14ff24f3935fa58aef405ffb246c0741336 (patch)
treebe0ebcda4a9b99a3b290fca9d8a210b18400b73a /src/being/being.cpp
parentb10cb3ac1189eaa5f41184527eee342584231f84 (diff)
downloadManaVerse-1307b14ff24f3935fa58aef405ffb246c0741336.tar.gz
ManaVerse-1307b14ff24f3935fa58aef405ffb246c0741336.tar.bz2
ManaVerse-1307b14ff24f3935fa58aef405ffb246c0741336.tar.xz
ManaVerse-1307b14ff24f3935fa58aef405ffb246c0741336.zip
Remove getter for charServerHandler.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp14
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 ++)
{