diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-18 22:43:41 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-18 22:43:41 +0000 |
commit | 6ce5dacb5b15f16ff4c672596c091a41a190d687 (patch) | |
tree | e2cf5b1ee2869933472b21a3b609ad813fb07652 /src/map/chrif.c | |
parent | 504f2e94093f05ce66be9bf54a5fa64cf5a53d3d (diff) | |
download | hercules-6ce5dacb5b15f16ff4c672596c091a41a190d687.tar.gz hercules-6ce5dacb5b15f16ff4c672596c091a41a190d687.tar.bz2 hercules-6ce5dacb5b15f16ff4c672596c091a41a190d687.tar.xz hercules-6ce5dacb5b15f16ff4c672596c091a41a190d687.zip |
- Removed the old 'mapserver charsave' mechanism
- Fixed some wrong sql login logic
- Fixed some compiler warnings, cleaned up mapserver sql-related vars
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10027 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index 87517f40c..09565b608 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -23,9 +23,7 @@ #include "pc.h" #include "status.h" #include "mercenary.h" -#ifndef TXT_ONLY -#include "charsave.h" -#endif + //Updated table (only doc^^) [Sirius] //Used Packets: U->2af8 //Free Packets: F->2af8 @@ -210,16 +208,7 @@ int chrif_save(struct map_session_data *sd, int flag) intif_saveregistry(sd, 2); //Save account regs if (sd->state.reg_dirty&1) intif_saveregistry(sd, 1); //Save account2 regs -#ifndef TXT_ONLY - if(charsave_method){ //New 'Local' save - charsave_savechar(sd->status.char_id, &sd->status); - if (flag) //Character final saved. - sd->state.finalsave = 1; - if (flag == 1) - chrif_char_offline(sd); //Tell char server that character went offline. - return 0; - } -#endif + WFIFOHEAD(char_fd, sizeof(sd->status) + 13); WFIFOW(char_fd,0) = 0x2b01; WFIFOW(char_fd,2) = sizeof(sd->status) + 13; @@ -458,10 +447,6 @@ int chrif_sendmapack(int fd) int chrif_scdata_request(int account_id, int char_id) { #ifdef ENABLE_SC_SAVING -#ifndef TXT_ONLY - if (charsave_method) - return charsave_load_scdata(account_id, char_id); -#endif chrif_check(-1); WFIFOHEAD(char_fd, 10); @@ -1231,13 +1216,6 @@ int chrif_save_scdata(struct map_session_data *sd) if (sd->state.finalsave) //Character was already saved? return -1; -#ifndef TXT_ONLY - if(charsave_method) //New 'Local' save - { - charsave_save_scdata(sd->status.account_id, sd->status.char_id, &sd->sc, MAX_STATUSCHANGE); - return 0; - } -#endif chrif_check(-1); tick = gettick(); |