summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-27 19:05:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-27 21:01:39 +0300
commit8150191686759b13a239c25970924c3c186140ff (patch)
tree6004551128df40dcf178ca639fe42490f80d2c01 /src/being.cpp
parent18d8872333e2e433ce7b9e7be71706de37933097 (diff)
downloadmv-8150191686759b13a239c25970924c3c186140ff.tar.gz
mv-8150191686759b13a239c25970924c3c186140ff.tar.bz2
mv-8150191686759b13a239c25970924c3c186140ff.tar.xz
mv-8150191686759b13a239c25970924c3c186140ff.zip
improve charserverhandler class.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/being.cpp b/src/being.cpp
index a30693d19..c57532fbf 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -45,7 +45,7 @@
#include "gui/sdlfont.h"
#include "gui/skilldialog.h"
-#include "net/charhandler.h"
+#include "net/charserverhandler.h"
#include "net/gamehandler.h"
#include "net/inventoryhandler.h"
#include "net/net.h"
@@ -340,8 +340,8 @@ void Being::setSubtype(const uint16_t subtype)
setRaceName(info.getName());
}
- if (Net::getCharHandler())
- setSprite(Net::getCharHandler()->baseSprite(), id);
+ if (Net::getCharServerHandler())
+ setSprite(Net::getCharServerHandler()->baseSprite(), id);
}
}
@@ -1777,7 +1777,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::getCharHandler()->maxSprite())
+ if (slot >= Net::getCharServerHandler()->maxSprite())
return;
if (slot >= size())
@@ -2305,7 +2305,7 @@ void Being::recalcSpritesOrder()
if (mAction == DEAD)
dir = 9;
- const unsigned int hairSlot = Net::getCharHandler()->hairSprite();
+ const unsigned int hairSlot = Net::getCharServerHandler()->hairSprite();
for (unsigned slot = 0; slot < sz; slot ++)
{