summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authorDennis Friis <peavey@inspircd.org>2009-06-23 01:35:07 +0200
committerDennis Friis <peavey@inspircd.org>2009-06-25 01:13:20 +0200
commit2f8f562c2c85aaff8fe2f12c2f4ab3092f53bd9c (patch)
tree1f3e5351556519137c137942f78ef92f36bf67f3 /src/map/intif.c
parent85f88cd23756be9be2028e0ca13cf1449e38c858 (diff)
downloadtmwa-2f8f562c2c85aaff8fe2f12c2f4ab3092f53bd9c.tar.gz
tmwa-2f8f562c2c85aaff8fe2f12c2f4ab3092f53bd9c.tar.bz2
tmwa-2f8f562c2c85aaff8fe2f12c2f4ab3092f53bd9c.tar.xz
tmwa-2f8f562c2c85aaff8fe2f12c2f4ab3092f53bd9c.zip
More fixes to storage derived from ea stable.
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index ae8e906..ca9d3c3 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -595,7 +595,7 @@ int intif_parse_LoadStorage(int fd) {
printf("intif_openstorage: %d\n",RFIFOL(fd,4) );
memcpy(stor,RFIFOP(fd,8),sizeof(struct storage));
stor->storage_status=1;
- sd->state.storage_flag = 0;
+ sd->state.storage_flag = 1;
clif_storageitemlist(sd,stor);
clif_storageequiplist(sd,stor);
clif_updatestorageamount(sd,stor);
@@ -608,6 +608,7 @@ int intif_parse_SaveStorage(int fd)
{
if(battle_config.save_log)
printf("intif_savestorage: done %d %d\n",RFIFOL(fd,2),RFIFOB(fd,6) );
+ storage_storage_saved(RFIFOL(fd,2));
return 0;
}
@@ -639,7 +640,7 @@ int intif_parse_LoadGuildStorage(int fd)
printf("intif_open_guild_storage: %d\n",RFIFOL(fd,4) );
memcpy(gstor,RFIFOP(fd,12),sizeof(struct guild_storage));
gstor->storage_status = 1;
- sd->state.storage_flag = 1;
+ sd->state.storage_flag = 2;
clif_guildstorageitemlist(sd,gstor);
clif_guildstorageequiplist(sd,gstor);
clif_updateguildstorageamount(sd,gstor);
@@ -651,6 +652,7 @@ int intif_parse_SaveGuildStorage(int fd)
if(battle_config.save_log) {
printf("intif_save_guild_storage: done %d %d %d\n",RFIFOL(fd,2),RFIFOL(fd,6),RFIFOB(fd,10) );
}
+ storage_guild_storagesaved(RFIFOL(fd,2), RFIFOL(fd,6));
return 0;
}