diff options
author | Dennis Friis <peavey@placid.dk> | 2008-05-08 01:08:01 +0000 |
---|---|---|
committer | Dennis Friis <peavey@placid.dk> | 2008-05-08 01:08:01 +0000 |
commit | cf58d1b9db1be0f2e72a9a34deb535c5fa6d9cdf (patch) | |
tree | bb20fa9358920beacb4fbdcb7290b42d9087232a | |
parent | 0dbd88dd02dcf0a4c3e7f9e2c9969b916be4fc72 (diff) | |
download | tmwa-cf58d1b9db1be0f2e72a9a34deb535c5fa6d9cdf.tar.gz tmwa-cf58d1b9db1be0f2e72a9a34deb535c5fa6d9cdf.tar.bz2 tmwa-cf58d1b9db1be0f2e72a9a34deb535c5fa6d9cdf.tar.xz tmwa-cf58d1b9db1be0f2e72a9a34deb535c5fa6d9cdf.zip |
Allow hairstyle to have id 0 when creating a char. The allowed range is documented to 0-20 both inclusive.
-rw-r--r-- | src/char/char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c index 6fe1a3e..aa4d554 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -767,7 +767,7 @@ int make_new_char(int fd, unsigned char *dat) { if (dat[24] + dat[25] + dat[26] + dat[27] + dat[28] + dat[29] != 5*6 || // stats dat[30] >= 9 || // slots (dat[30] can not be negativ) - dat[33] <= 0 || dat[33] >= 20 || // hair style + dat[33] < 0 || dat[33] >= 20 || // hair style dat[31] >= 12) { // hair color (dat[31] can not be negativ) char_log("Make new char error (invalid values): (connection #%d, account: %d) slot %d, name: %s, stats: %d+%d+%d+%d+%d+%d=%d, hair: %d, hair color: %d" RETCODE, fd, sd->account_id, dat[30], dat, dat[24], dat[25], dat[26], dat[27], dat[28], dat[29], dat[24] + dat[25] + dat[26] + dat[27] + dat[28] + dat[29], dat[33], dat[31]); |