summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-08 19:23:14 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-08 19:23:14 +0000
commit9e89ccb915fbc6cb73a5f48fcaf2fa10f64e6f24 (patch)
tree53a68a255161bb45ff17a181251a67650c4327fd /src/gui
parent2c2222a442165fd091cc80ab2d198e3539e1cdd4 (diff)
downloadmana-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')
-rw-r--r--src/gui/char_select.cpp4
-rw-r--r--src/gui/playerbox.cpp3
2 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp
index 008c7e8d..ab0e19a1 100644
--- a/src/gui/char_select.cpp
+++ b/src/gui/char_select.cpp
@@ -26,14 +26,12 @@
#include "textfield.h"
#include "button.h"
#include "ok_dialog.h"
+#include "being.h"
#include "../graphics.h"
#include "../net/protocol.h"
#include "../resources/resourcemanager.h"
#include <sstream>
-#define NR_HAIR_STYLES 4
-#define NR_HAIR_COLORS 10
-
CharSelectDialog::CharDeleteConfirm::CharDeleteConfirm(CharSelectDialog *m):
ConfirmDialog(m,
"Confirm", "Are you sure you want to delete this character?"),
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()) {