diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-28 16:09:13 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-28 16:09:13 +0000 |
commit | e07b2da8d90f955dbe01737e9bfdb73ddaa3bd83 (patch) | |
tree | 2b7773b750e46c8356556a11944f166f3fbbe627 /src/map/pet.c | |
parent | 7ab2575a4a3499c642e315d860c82fed60e3d9bb (diff) | |
download | hercules-e07b2da8d90f955dbe01737e9bfdb73ddaa3bd83.tar.gz hercules-e07b2da8d90f955dbe01737e9bfdb73ddaa3bd83.tar.bz2 hercules-e07b2da8d90f955dbe01737e9bfdb73ddaa3bd83.tar.xz hercules-e07b2da8d90f955dbe01737e9bfdb73ddaa3bd83.zip |
- Cleaned up a bit the code for @item
- Fixed character/storage being sent to be saved TWICE when you logged out while the storage is opened.
- Added save_settings map config. Specifies after which events do characters get saved (defaults to all): 1 - Trade successful, 2 - Vending transaction, 4 - Closing storage/guild storage, 8 - hatching a pet.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7375 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pet.c')
-rw-r--r-- | src/map/pet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/pet.c b/src/map/pet.c index 2c21b85b8..0bde801ae8 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -450,7 +450,8 @@ int pet_birth_process(struct map_session_data *sd) }
intif_save_petdata(sd->status.account_id,&sd->pet);
- chrif_save(sd,0); //FIXME: As before, is it REALLY Needed to save the char for hatching a pet? [Skotlex]
+ if (save_settings&8)
+ chrif_save(sd,0); //FIXME: As before, is it REALLY Needed to save the char for hatching a pet? [Skotlex]
map_addblock(&sd->pd->bl);
clif_spawn(&sd->pd->bl);
|