From 4159ba015c5f2035d188367d85d85052a7673cdc Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Wed, 18 Jan 2012 18:10:26 +0100 Subject: 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 --- src/gui/charcreatedialog.cpp | 10 +++++----- src/gui/charselectdialog.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gui') 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)); } diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp index 42c514ec..2972c492 100644 --- a/src/gui/charselectdialog.cpp +++ b/src/gui/charselectdialog.cpp @@ -49,7 +49,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" -- cgit v1.2.3-70-g09d2