diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-02-13 08:46:52 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2020-04-05 21:20:35 +0200 |
commit | 3bdf77ae814ae0c15cba32acfcb82f591fa848c2 (patch) | |
tree | 520cfe2b63c9642c4312c32c75a76e223201e1d7 /src/map/pc.c | |
parent | 09e291009156002e83566afe7a10b6509f5463f5 (diff) | |
download | hercules-3bdf77ae814ae0c15cba32acfcb82f591fa848c2.tar.gz hercules-3bdf77ae814ae0c15cba32acfcb82f591fa848c2.tar.bz2 hercules-3bdf77ae814ae0c15cba32acfcb82f591fa848c2.tar.xz hercules-3bdf77ae814ae0c15cba32acfcb82f591fa848c2.zip |
Add value capping to pet_set_intimate() function
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 33deb780b..eb71ccfe4 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -8046,8 +8046,6 @@ static int pc_dead(struct map_session_data *sd, struct block_list *src) struct pet_data *pd = sd->pd; if( !map->list[sd->bl.m].flag.noexppenalty ) { pet->set_intimate(pd, pd->pet.intimate - pd->petDB->die); - if (pd->pet.intimate < PET_INTIMACY_NONE) - pd->pet.intimate = PET_INTIMACY_NONE; clif->send_petdata(sd,sd->pd,1,pd->pet.intimate); } if( sd->pd->target_id ) // Unlock all targets... |