diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-08-26 16:01:24 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-08-26 16:01:24 +0000 |
commit | ef4486580fc7b8293555fcabc398ed0c2b90d78e (patch) | |
tree | 41312f2ab68ceaa95ca0cc235f6b612c790bb90e /src/gui/char_select.cpp | |
parent | 5cc5c903df7b535c6bf27987b89a405812d89735 (diff) | |
download | mana-client-ef4486580fc7b8293555fcabc398ed0c2b90d78e.tar.gz mana-client-ef4486580fc7b8293555fcabc398ed0c2b90d78e.tar.bz2 mana-client-ef4486580fc7b8293555fcabc398ed0c2b90d78e.tar.xz mana-client-ef4486580fc7b8293555fcabc398ed0c2b90d78e.zip |
Got rid of numerous additions and substractions to the hair style and color.
Hair style 0 was added and defined as being bald (so bald is no longer a
hardcoded style).
Diffstat (limited to 'src/gui/char_select.cpp')
-rw-r--r-- | src/gui/char_select.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index 2fa6c68e..3db82287 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -183,8 +183,8 @@ void CharSelectDialog::updatePlayerInfo() mDelCharButton->setEnabled(true); mSelectButton->setEnabled(true); } - mPlayerBox->mHairStyle = pi->getHairStyle() - 1; - mPlayerBox->mHairColor = pi->getHairColor() - 1; + mPlayerBox->mHairStyle = pi->getHairStyle(); + mPlayerBox->mHairColor = pi->getHairColor(); mPlayerBox->mSex = pi->getSex(); mPlayerBox->mShowPlayer = true; } else { @@ -324,11 +324,10 @@ std::string CharCreateDialog::getName() void CharCreateDialog::attemptCharCreate() { // Send character infos - MessageOut outMsg; - outMsg.writeShort(PAMSG_CHAR_CREATE); + MessageOut outMsg(PAMSG_CHAR_CREATE); outMsg.writeString(getName()); - outMsg.writeByte(mPlayerBox->mHairStyle + 1); - outMsg.writeByte(mPlayerBox->mHairColor + 1); + outMsg.writeByte(mPlayerBox->mHairStyle); + outMsg.writeByte(mPlayerBox->mHairColor); // TODO: send selected sex outMsg.writeByte(0); // Player sex outMsg.writeShort(10); // STR |