From 8c1192d8dd59c8b37204efcac02f20427f5393d8 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 22 Aug 2006 16:05:53 +0000 Subject: - Modified the homun-txt file-save format to separate the name from the rest of fields with tabs (like character saving does), this may fix homun save/loading when using non-latin characters on the name, but be warned that it also means the previous homun-data files are lost! (unless you replace the comma before the start of a name with a tab) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8432 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char/int_homun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/char/int_homun.c b/src/char/int_homun.c index 48e96b9f0..fc06995c6 100644 --- a/src/char/int_homun.c +++ b/src/char/int_homun.c @@ -23,7 +23,7 @@ int inter_homun_tostr(char *str,struct s_homunculus *p) { int i; - str+=sprintf(str,"%d,%d,%s\t%d,%d,%d,%d,%d," + str+=sprintf(str,"%d,%d\t%s\t%d,%d,%d,%d,%d," "%u,%d,%d,%d," "%u,%d,%d," "%d,%d,%d,%d,%d,%d\t", @@ -51,7 +51,7 @@ int inter_homun_fromstr(char *str,struct s_homunculus *p) memset(p,0,sizeof(struct s_homunculus)); - i=sscanf(str,"%d,%d,%[^\t]\t%d,%d,%d,%d,%d," + i=sscanf(str,"%d,%d\t%127[^\t]\t%d,%d,%d,%d,%d," "%u,%d,%d,%d," "%u,%d,%d," "%d,%d,%d,%d,%d,%d\t%n", -- cgit v1.2.3-60-g2f50