diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-18 12:48:56 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-18 12:48:56 +0000 |
commit | 2ce4ea3324da64930c77076194e2e8b2b8ab2e49 (patch) | |
tree | ceaf8c62f7e8a47f5e94f5cdad91455b1f33eb0f /src/char | |
parent | f53dd3e3e3ae847c0871050464fc25f3f5863101 (diff) | |
download | hercules-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')
-rw-r--r-- | src/char/char.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c index c61a84d29..31eb5c7dc 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1194,8 +1194,6 @@ int make_new_char(struct char_session_data* sd, char* name_, int str, int agi, i //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 |