diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-04-11 08:38:27 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-04-11 08:38:27 +0200 |
commit | c6baa02f18075da2abffe532ce0c87483c36ad9d (patch) | |
tree | ea7c4228bc134d9788385ff74d04f708c125eeba /src/map/pet.c | |
parent | f40cc839413cc82aed445d39cc3aa204dce87780 (diff) | |
download | hercules-c6baa02f18075da2abffe532ce0c87483c36ad9d.tar.gz hercules-c6baa02f18075da2abffe532ce0c87483c36ad9d.tar.bz2 hercules-c6baa02f18075da2abffe532ce0c87483c36ad9d.tar.xz hercules-c6baa02f18075da2abffe532ce0c87483c36ad9d.zip |
Fix usage of *= operator
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 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) { |