diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-27 19:05:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-27 21:01:39 +0300 |
commit | 8150191686759b13a239c25970924c3c186140ff (patch) | |
tree | 6004551128df40dcf178ca639fe42490f80d2c01 /src/being.cpp | |
parent | 18d8872333e2e433ce7b9e7be71706de37933097 (diff) | |
download | manaplus-8150191686759b13a239c25970924c3c186140ff.tar.gz manaplus-8150191686759b13a239c25970924c3c186140ff.tar.bz2 manaplus-8150191686759b13a239c25970924c3c186140ff.tar.xz manaplus-8150191686759b13a239c25970924c3c186140ff.zip |
improve charserverhandler class.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 10 |
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 ++) { |