diff options
author | Ira Rice <irarice@gmail.com> | 2008-10-27 17:05:14 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-10-27 17:05:14 +0000 |
commit | 0007b8e9497eacb506c8bfad34aad5adff10ba5a (patch) | |
tree | 5c256dac8cd142a762a948ef6a481789e3fbdf2c /src/player.cpp | |
parent | f3beda85b284e57caf6e5c685174bcb2e608d9ce (diff) | |
download | mana-0007b8e9497eacb506c8bfad34aad5adff10ba5a.tar.gz mana-0007b8e9497eacb506c8bfad34aad5adff10ba5a.tar.bz2 mana-0007b8e9497eacb506c8bfad34aad5adff10ba5a.tar.xz mana-0007b8e9497eacb506c8bfad34aad5adff10ba5a.zip |
De-hardcoded the number of hair styles.
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player.cpp b/src/player.cpp index 37badcdc..c9d1e683 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -159,7 +159,7 @@ void Player::setGender(int gender) void Player::setHairStyle(int style, int color) { - style = style < 0 ? mHairStyle : style % NR_HAIR_STYLES; + style = style < 0 ? mHairStyle : style % mNumberOfHairstyles; if (style == mHairStyle && color == mHairColor) return; Being::setHairStyle(style, color); |