summaryrefslogtreecommitdiff
path: root/src/map/pet.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2020-05-03 21:35:49 +0200
committerGitHub <noreply@github.com>2020-05-03 21:35:49 +0200
commit21fd90c8c066a59dd41bb8a2c85e85b72ea6b9d6 (patch)
treebc5690ee69f74b4cbf25342b69955d6e7bad2cce /src/map/pet.c
parent5f47379d6f5bba08a41be2a4a2604d36d3bce37a (diff)
parentc6baa02f18075da2abffe532ce0c87483c36ad9d (diff)
downloadhercules-21fd90c8c066a59dd41bb8a2c85e85b72ea6b9d6.tar.gz
hercules-21fd90c8c066a59dd41bb8a2c85e85b72ea6b9d6.tar.bz2
hercules-21fd90c8c066a59dd41bb8a2c85e85b72ea6b9d6.tar.xz
hercules-21fd90c8c066a59dd41bb8a2c85e85b72ea6b9d6.zip
Merge pull request #2690 from Kenpachi2k13/operator_use_fix
Fix usage of *= operator
Diffstat (limited to 'src/map/pet.c')
-rw-r--r--src/map/pet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index 620779765..83946953d 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -323,7 +323,7 @@ static int pet_hungry(int tid, int64 tick, int id, intptr_t data)
}
clif->send_petdata(sd, pd, 2, pd->pet.hungry);
- interval *= battle_config.pet_hungry_delay_rate / 100;
+ interval = interval * battle_config.pet_hungry_delay_rate / 100;
pd->pet_hungry_timer = timer->add(tick + max(interval, 1), pet->hungry, sd->bl.id, 0);
return 0;
@@ -944,7 +944,7 @@ static int pet_food(struct map_session_data *sd, struct pet_data *pd)
else
intimacy += pd->petDB->r_hungry / 2; // Increase intimacy by 50% of FeedIncrement.
- intimacy *= battle_config.pet_friendly_rate / 100;
+ intimacy = intimacy * battle_config.pet_friendly_rate / 100;
pet->set_intimate(pd, pd->pet.intimate + intimacy);
if (pd->pet.intimate == PET_INTIMACY_NONE) {