Fixed txt-converter compilation errors (ASCII again + added missing ers.o to makefile)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5170 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Komurka 2006-02-03 10:21:56 +00:00
parent 432aefc244
commit 78da77b702
3 changed files with 11 additions and 8 deletions

View File

@ -4,6 +4,9 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. EVERYTHING ELSE IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. EVERYTHING ELSE
GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS
2006/02/03
* Fixed txt-converter compilation errors [Komurka]
2006/02/02 2006/02/02
* Fixed crash in status_change_timer. For some reason the block type switch was removed. [Valaris] * Fixed crash in status_change_timer. For some reason the block type switch was removed. [Valaris]
* Crash fix in npc.c npc_timerevent. * Crash fix in npc.c npc_timerevent.

View File

@ -3,7 +3,7 @@ all sql: char-converter login-converter
char-converter: char-converter.o ../common/obj/minicore.o ../common/obj/malloc.o ../common/obj/showmsg.o ../common/obj/strlib.o ../common/obj/mapindex.o ../common/obj/ers.o char-converter: char-converter.o ../common/obj/minicore.o ../common/obj/malloc.o ../common/obj/showmsg.o ../common/obj/strlib.o ../common/obj/mapindex.o ../common/obj/ers.o
$(CC) -o ../../tools/$@ $^ $(LIB_S) $(CC) -o ../../tools/$@ $^ $(LIB_S)
login-converter: login-converter.o ../common/obj/minicore.o ../common/obj/db.o ../common/obj/malloc.o ../common/obj/showmsg.o login-converter: login-converter.o ../common/obj/minicore.o ../common/obj/db.o ../common/obj/malloc.o ../common/obj/showmsg.o ../common/obj/ers.o
$(CC) -o ../../tools/$@ $^ $(LIB_S) $(CC) -o ../../tools/$@ $^ $(LIB_S)
clean: clean:

View File

@ -1,4 +1,4 @@
// (c) eAthena Dev Team - Licensed under GNU GPL // (c) eAthena Dev Team - Licensed under GNU GPL
// For more information, see LICENCE in the main folder // For more information, see LICENCE in the main folder
#include <stdio.h> #include <stdio.h>
@ -270,7 +270,7 @@ int mmo_char_fromstr(char *str, struct mmo_charstatus *p, struct accreg *reg) {
} }
if (str[next] == '\n' || str[next] == '\r') if (str[next] == '\n' || str[next] == '\r')
return 1; // V‹Kƒf[ƒ^ return 1;
next++; next++;
@ -359,7 +359,7 @@ int mmo_char_fromstr(char *str, struct mmo_charstatus *p, struct accreg *reg) {
next++; next++;
for(i = 0; str[next] && str[next] != '\t' && str[next] != '\n' && str[next] != '\r'; i++) { // global_regŽÀ‘•ˆÈ‘O‚Ìathena.txtŒÝŠ·‚Ì‚½‚߈ꉞ'\n'ƒ`ƒFƒbƒN for(i = 0; str[next] && str[next] != '\t' && str[next] != '\n' && str[next] != '\r'; i++) {
if (sscanf(str + next, "%[^,],%s%n", reg->reg[i].str, reg->reg[i].value, &len) != 2) { if (sscanf(str + next, "%[^,],%s%n", reg->reg[i].str, reg->reg[i].value, &len) != 2) {
// because some scripts are not correct, the str can be "". So, we must check that. // because some scripts are not correct, the str can be "". So, we must check that.
// If it's, we must not refuse the character, but just this REG value. // If it's, we must not refuse the character, but just this REG value.