From 2669d54e37bb231866479efd177808ec6ab3eab8 Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Mon, 22 Jun 2020 05:12:32 +0200 Subject: Send pet's intimacy data only in pet_set_intimate() --- src/map/pet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/pet.c') 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; -- cgit v1.2.3-60-g2f50