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/gui/charcreatedialog.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/gui/charcreatedialog.cpp')
-rw-r--r-- | src/gui/charcreatedialog.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp index 746295b5..cdd6739c 100644 --- a/src/gui/charcreatedialog.cpp +++ b/src/gui/charcreatedialog.cpp @@ -42,7 +42,7 @@ #include "net/messageout.h" #include "net/net.h" -#include "resources/colordb.h" +#include "resources/hairdb.h" #include "utils/gettext.h" #include "utils/stringutils.h" @@ -57,7 +57,7 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *parent, int slot): mPlayer = new Being(0, ActorSprite::PLAYER, 0, NULL); mPlayer->setGender(GENDER_MALE); - int numberOfHairColors = ColorDB::size(); + int numberOfHairColors = HairDB::size(); mHairStyle = rand() % mPlayer->getNumOfHairstyles(); mHairColor = rand() % numberOfHairColors; @@ -363,10 +363,10 @@ void CharCreateDialog::updateHair() if (mHairStyle < 0) mHairStyle += Being::getNumOfHairstyles(); - mHairColor %= ColorDB::size(); + mHairColor %= HairDB::size(); if (mHairColor < 0) - mHairColor += ColorDB::size(); + mHairColor += HairDB::size(); mPlayer->setSprite(Net::getCharHandler()->hairSprite(), - mHairStyle * -1, ColorDB::get(mHairColor)); + mHairStyle * -1, HairDB::get(mHairColor)); } |