diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2012-01-18 18:10:26 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2012-01-18 22:40:43 +0100 |
commit | 4159ba015c5f2035d188367d85d85052a7673cdc (patch) | |
tree | 1776e43ef3708dc094f747e64720dd41f1fa1f5b /src/net/manaserv/beinghandler.cpp | |
parent | e554d9b2be1ec2fcb15065ae70151302adeef602 (diff) | |
download | mana-4159ba015c5f2035d188367d85d85052a7673cdc.tar.gz mana-4159ba015c5f2035d188367d85d85052a7673cdc.tar.bz2 mana-4159ba015c5f2035d188367d85d85052a7673cdc.tar.xz mana-4159ba015c5f2035d188367d85d85052a7673cdc.zip |
ColorDB -> HairDB.
This will ease the reading of the next patch about hair handling
at character creation time in tAthena.
As requested by bjorn.
Reviewed-by: bjorn
Diffstat (limited to 'src/net/manaserv/beinghandler.cpp')
-rw-r--r-- | src/net/manaserv/beinghandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/manaserv/beinghandler.cpp b/src/net/manaserv/beinghandler.cpp index 3e635d43..980c538c 100644 --- a/src/net/manaserv/beinghandler.cpp +++ b/src/net/manaserv/beinghandler.cpp @@ -38,7 +38,7 @@ #include "net/manaserv/playerhandler.h" #include "net/manaserv/manaserv_protocol.h" -#include "resources/colordb.h" +#include "resources/hairdb.h" #include "utils/gettext.h" @@ -144,7 +144,7 @@ void BeingHandler::handleBeingEnterMessage(Net::MessageIn &msg) being->setName(name); } int hs = msg.readInt8(), hc = msg.readInt8(); - being->setSprite(SPRITE_LAYER_HAIR, hs * -1, ColorDB::get(hc)); + being->setSprite(SPRITE_LAYER_HAIR, hs * -1, HairDB::get(hc)); being->setGender(msg.readInt8() == ManaServ::GENDER_MALE ? ::GENDER_MALE : ::GENDER_FEMALE); handleLooks(being, msg); @@ -334,7 +334,7 @@ void BeingHandler::handleBeingLooksChangeMessage(Net::MessageIn &msg) { int style = msg.readInt16(); int color = msg.readInt16(); - being->setSprite(SPRITE_LAYER_HAIR, style * -1, ColorDB::get(color)); + being->setSprite(SPRITE_LAYER_HAIR, style * -1, HairDB::get(color)); } } |