summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-29 16:32:28 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-29 16:32:28 +0000
commit51079611e59264b02fdbb4beb0d3675cc64618e6 (patch)
tree22591fb3e22bd877cf913893437da65bf9122680 /src/map/pc.c
parent3f3a0e79643fecf5209128075028e375a4a5bb95 (diff)
downloadhercules-51079611e59264b02fdbb4beb0d3675cc64618e6.tar.gz
hercules-51079611e59264b02fdbb4beb0d3675cc64618e6.tar.bz2
hercules-51079611e59264b02fdbb4beb0d3675cc64618e6.tar.xz
hercules-51079611e59264b02fdbb4beb0d3675cc64618e6.zip
* Added auto save guild dataevery 5 minutes during WOE
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1333 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 8b3a32c6f..3dcb08f3b 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6881,9 +6881,6 @@ int pc_setsavepoint(struct map_session_data *sd,char *mapname,int x,int y)
*------------------------------------------
*/
static int last_save_fd,save_flag;
-// --- uncomment to reenable guild castle saving ---//
-//static int Ghp[MAX_GUILDCASTLE][8]; // so save only if HP are changed // experimental code [Yor]
-
static int pc_autosave_sub(struct map_session_data *sd,va_list ap)
{
nullpo_retr(0, sd);
@@ -6891,10 +6888,6 @@ static int pc_autosave_sub(struct map_session_data *sd,va_list ap)
Assert((sd->status.pet_id == 0 || sd->pd == 0) || sd->pd->msd == sd);
if(save_flag==0 && sd->fd>last_save_fd && !sd->state.waitingdisconnect){
-// --- uncomment to reenable guild castle saving ---//
-// struct guild_castle *gc=NULL;
-// int i;
-//
// if(battle_config.save_log)
// printf("autosave %d\n",sd->fd);
@@ -6905,44 +6898,6 @@ static int pc_autosave_sub(struct map_session_data *sd,va_list ap)
chrif_save(sd);
storage_storage_save(sd);
-// --- uncomment to reenable guild castle saving ---//
-/* for(i = 0; i < MAX_GUILDCASTLE; i++) { // [Yor]
- gc = guild_castle_search(i);
- if (!gc) continue;
- if (gc->visibleG0 == 1 && Ghp[i][0] != gc->Ghp0) {
- guild_castledatasave(gc->castle_id, 18, gc->Ghp0);
- Ghp[i][0] = gc->Ghp0;
- }
- if (gc->visibleG1 == 1 && Ghp[i][1] != gc->Ghp1) {
- guild_castledatasave(gc->castle_id, 19, gc->Ghp1);
- Ghp[i][1] = gc->Ghp1;
- }
- if (gc->visibleG2 == 1 && Ghp[i][2] != gc->Ghp2) {
- guild_castledatasave(gc->castle_id, 20, gc->Ghp2);
- Ghp[i][2] = gc->Ghp2;
- }
- if (gc->visibleG3 == 1 && Ghp[i][3] != gc->Ghp3) {
- guild_castledatasave(gc->castle_id, 21, gc->Ghp3);
- Ghp[i][3] = gc->Ghp3;
- }
- if (gc->visibleG4 == 1 && Ghp[i][4] != gc->Ghp4) {
- guild_castledatasave(gc->castle_id, 22, gc->Ghp4);
- Ghp[i][4] = gc->Ghp4;
- }
- if (gc->visibleG5 == 1 && Ghp[i][5] != gc->Ghp5) {
- guild_castledatasave(gc->castle_id, 23, gc->Ghp5);
- Ghp[i][5] = gc->Ghp5;
- }
- if (gc->visibleG6 == 1 && Ghp[i][6] != gc->Ghp6) {
- guild_castledatasave(gc->castle_id, 24, gc->Ghp6);
- Ghp[i][6] = gc->Ghp6;
- }
- if (gc->visibleG7 == 1 && Ghp[i][7] != gc->Ghp7) {
- guild_castledatasave(gc->castle_id, 25, gc->Ghp7);
- Ghp[i][7] = gc->Ghp7;
- }
- }*/
-
save_flag=1;
last_save_fd = sd->fd;
}