summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaximilian Philipps <Turmfalke2007@web.de>2009-07-30 13:48:17 +0200
committerJared Adams <jaxad0127@gmail.com>2009-08-01 08:39:02 -0600
commit37bdc8e72ec43e6e8f827ed77a1f93f5a8b0007f (patch)
tree77c1e0c33ee66ae4aa1941cc1948cc3935401e3c
parent3b44872c6d1601abe33115a92cbb8e3e13d2bea5 (diff)
downloadtmwa-37bdc8e72ec43e6e8f827ed77a1f93f5a8b0007f.tar.gz
tmwa-37bdc8e72ec43e6e8f827ed77a1f93f5a8b0007f.tar.bz2
tmwa-37bdc8e72ec43e6e8f827ed77a1f93f5a8b0007f.tar.xz
tmwa-37bdc8e72ec43e6e8f827ed77a1f93f5a8b0007f.zip
fix 2 error messages for char.log
-rw-r--r--src/char/char.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 37580b6..38c1f4a 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -816,12 +816,12 @@ int make_new_char(int fd, unsigned char *dat) {
for(i = 0; i < char_num; i++) {
if ((name_ignoring_case != 0 && strcmp(char_dat[i].name, dat) == 0) ||
(name_ignoring_case == 0 && strcmpi(char_dat[i].name, dat) == 0)) {
- char_log("Make new char error (name already exists): (connection #%d, account: %d) slot %d, name: %s (actual name of other char: %d), stats: %d+%d+%d+%d+%d+%d=%d, hair: %d, hair color: %d." RETCODE,
+ char_log("Make new char error (name already exists): (connection #%d, account: %d) slot %d, name: %s (actual name of other char: %s), stats: %d+%d+%d+%d+%d+%d=%d, hair: %d, hair color: %d." RETCODE,
fd, sd->account_id, dat[30], dat, char_dat[i].name, 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]);
return -1;
}
if (char_dat[i].account_id == sd->account_id && char_dat[i].char_num == dat[30]) {
- char_log("Make new char error (slot already used): (connection #%d, account: %d) slot %d, name: %s (actual name of other char: %d), stats: %d+%d+%d+%d+%d+%d=%d, hair: %d, hair color: %d." RETCODE,
+ char_log("Make new char error (slot already used): (connection #%d, account: %d) slot %d, name: %s (actual name of other char: %s), stats: %d+%d+%d+%d+%d+%d=%d, hair: %d, hair color: %d." RETCODE,
fd, sd->account_id, dat[30], dat, char_dat[i].name, 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]);
return -1;
}