diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-08 19:23:14 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-08 19:23:14 +0000 |
commit | 9e89ccb915fbc6cb73a5f48fcaf2fa10f64e6f24 (patch) | |
tree | 53a68a255161bb45ff17a181251a67650c4327fd /src/gui/playerbox.cpp | |
parent | 2c2222a442165fd091cc80ab2d198e3539e1cdd4 (diff) | |
download | mana-9e89ccb915fbc6cb73a5f48fcaf2fa10f64e6f24.tar.gz mana-9e89ccb915fbc6cb73a5f48fcaf2fa10f64e6f24.tar.bz2 mana-9e89ccb915fbc6cb73a5f48fcaf2fa10f64e6f24.tar.xz mana-9e89ccb915fbc6cb73a5f48fcaf2fa10f64e6f24.zip |
Added new hair style by Frode Lindeijer.
Diffstat (limited to 'src/gui/playerbox.cpp')
-rw-r--r-- | src/gui/playerbox.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/playerbox.cpp b/src/gui/playerbox.cpp index c8493c79..0e9f5e0f 100644 --- a/src/gui/playerbox.cpp +++ b/src/gui/playerbox.cpp @@ -23,6 +23,7 @@ #include "playerbox.h" #include "gui.h" +#include "../being.h" #include "../main.h" #include "../resources/resourcemanager.h" @@ -63,7 +64,7 @@ void PlayerBox::draw(gcn::Graphics *graphics) // Draw his hair if (hairColor >= 0 && hairStyle >= 0 && - hairColor < 10 && hairStyle < 4) + hairColor < NR_HAIR_COLORS && hairStyle < NR_HAIR_STYLES) { int hf = hairColor + 40 * (hairStyle); if (hf >= 0 && hf < (int)hairset->spriteset.size()) { |