summaryrefslogtreecommitdiff
path: root/src/char_sql
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-18 12:48:56 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-18 12:48:56 +0000
commit2ce4ea3324da64930c77076194e2e8b2b8ab2e49 (patch)
treeceaf8c62f7e8a47f5e94f5cdad91455b1f33eb0f /src/char_sql
parentf53dd3e3e3ae847c0871050464fc25f3f5863101 (diff)
downloadhercules-2ce4ea3324da64930c77076194e2e8b2b8ab2e49.tar.gz
hercules-2ce4ea3324da64930c77076194e2e8b2b8ab2e49.tar.bz2
hercules-2ce4ea3324da64930c77076194e2e8b2b8ab2e49.tar.xz
hercules-2ce4ea3324da64930c77076194e2e8b2b8ab2e49.zip
* Updates to handling of hair color/style and cloth color of characters.
- Moved limit shortcut defines from mmo.h to battle.h, as they are only required in files, which include battle.h (since pre-svn 2004/10/15). - Moved hair style/color validation from char-server to map-server. This enables use of non-default limits as specified in battle config, rather than being restricted to hard-coded ones (bugreport:150). - Cleaned up related capping of values in pc_changelook (related r1708). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14604 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql')
-rw-r--r--src/char_sql/char.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index d33ba46bd..b96027490 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -1294,8 +1294,6 @@ int make_new_char_sql(struct char_session_data* sd, char* name_, int str, int ag
//check other inputs
if((slot >= MAX_CHARS) // slots
- || (hair_style >= 24) // hair style
- || (hair_color >= 9) // hair color
|| (str + agi + vit + int_ + dex + luk != 6*5 ) // stats
|| (str < 1 || str > 9 || agi < 1 || agi > 9 || vit < 1 || vit > 9 || int_ < 1 || int_ > 9 || dex < 1 || dex > 9 || luk < 1 || luk > 9) // individual stat values
|| (str + int_ != 10 || agi + luk != 10 || vit + dex != 10) ) // pairs