diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-01-10 23:42:55 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-01-10 23:42:55 +0000 |
commit | 9c8e872f2cb8c8dd919eff61a4ce9d63b041f715 (patch) | |
tree | e2461fd6df6499ea1d7a1ec5f1d92179a77652ab /src/player.cpp | |
parent | 3fe5d486bf33d4658ab75b49fe878a9a0394d835 (diff) | |
download | mana-client-9c8e872f2cb8c8dd919eff61a4ce9d63b041f715.tar.gz mana-client-9c8e872f2cb8c8dd919eff61a4ce9d63b041f715.tar.bz2 mana-client-9c8e872f2cb8c8dd919eff61a4ce9d63b041f715.tar.xz mana-client-9c8e872f2cb8c8dd919eff61a4ce9d63b041f715.zip |
Accepted bugfixes for character creation from Rogier Polak.
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/player.cpp b/src/player.cpp index 63ed5455..288401e4 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -140,9 +140,11 @@ Player::setHairColor(Uint16 color) { if (color != mHairColor) { + Being::setHairColor(color); + AnimatedSprite *newHairSprite = new AnimatedSprite( "graphics/sprites/hairstyle" + toString(mHairStyle) + ".xml", - color); + mHairColor); newHairSprite->setDirection(getSpriteDirection()); delete mSprites[HAIR_SPRITE]; @@ -150,8 +152,6 @@ Player::setHairColor(Uint16 color) setAction(mAction); } - - Being::setHairColor(color); } void @@ -159,8 +159,10 @@ Player::setHairStyle(Uint16 style) { if (style != mHairStyle) { + Being::setHairStyle(style); + AnimatedSprite *newHairSprite = new AnimatedSprite( - "graphics/sprites/hairstyle" + toString(style) + ".xml", + "graphics/sprites/hairstyle" + toString(mHairStyle) + ".xml", mHairColor); newHairSprite->setDirection(getSpriteDirection()); @@ -169,8 +171,6 @@ Player::setHairStyle(Uint16 style) setAction(mAction); } - - Being::setHairStyle(style); } void |