diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-22 05:12:32 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-22 05:12:32 +0200 |
commit | 2669d54e37bb231866479efd177808ec6ab3eab8 (patch) | |
tree | c5416cd0fac9d632870f6c6176643a779b841785 /src/map/pet.c | |
parent | afdb49e3bd8dc186626c9defe50af5b6dceb9519 (diff) | |
download | hercules-2669d54e37bb231866479efd177808ec6ab3eab8.tar.gz hercules-2669d54e37bb231866479efd177808ec6ab3eab8.tar.bz2 hercules-2669d54e37bb231866479efd177808ec6ab3eab8.tar.xz hercules-2669d54e37bb231866479efd177808ec6ab3eab8.zip |
Send pet's intimacy data only in pet_set_intimate()
Diffstat (limited to 'src/map/pet.c')
-rw-r--r-- | src/map/pet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pet.c b/src/map/pet.c index c6656047c..5b2a95446 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -158,6 +158,8 @@ static void pet_set_intimate(struct pet_data *pd, int value) pet_stop_attack(pd); unit->remove_map(&pd->bl, CLR_OUTSIGHT, ALC_MARK); } + } else { + clif->send_petdata(sd, pd, 1, pd->pet.intimate); } status_calc_pc(sd, SCO_NONE); @@ -350,7 +352,6 @@ static int pet_hungry(int tid, int64 tick, int id, intptr_t data) return 0; status_calc_pet(pd, SCO_NONE); - clif->send_petdata(sd, pd, 1, pd->pet.intimate); if (pd->petDB->starving_delay > 0) interval = pd->petDB->starving_delay; @@ -989,7 +990,6 @@ static int pet_food(struct map_session_data *sd, struct pet_data *pd) status_calc_pet(pd, SCO_NONE); pet->set_hunger(pd, pd->pet.hungry + pd->petDB->fullness); clif->send_petdata(sd, pd, 2, pd->pet.hungry); - clif->send_petdata(sd, pd, 1, pd->pet.intimate); clif->pet_food(sd, pd->petDB->FoodID, 1); return 0; |