From b6373365e5ac7ccf01c124fcebce6faba2d7519c Mon Sep 17 00:00:00 2001 From: ultramage Date: Sat, 26 Jul 2008 14:22:28 +0000 Subject: Replaced occurences of '-1' with the more appropriate 'INVALID_TIMER' value where appropriate. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12998 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pet.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/map/pet.c') diff --git a/src/map/pet.c b/src/map/pet.c index 2926e57a6..f439c793f 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -246,7 +246,7 @@ static int pet_hungry(int tid, unsigned int tick, int id, intptr data) ShowError("pet_hungry_timer %d != %d\n",pd->pet_hungry_timer,tid); return 0; } - pd->pet_hungry_timer = -1; + pd->pet_hungry_timer = INVALID_TIMER; if (pd->pet.intimate <= 0) return 1; //You lost the pet already, the rest is irrelevant. @@ -303,7 +303,7 @@ int pet_hungry_timer_delete(struct pet_data *pd) nullpo_retr(0, pd); if(pd->pet_hungry_timer != -1) { delete_timer(pd->pet_hungry_timer,pet_hungry); - pd->pet_hungry_timer = -1; + pd->pet_hungry_timer = INVALID_TIMER; } return 1; @@ -751,12 +751,12 @@ static int pet_unequipitem(struct map_session_data *sd, struct pet_data *pd) delete_timer(pd->s_skill->timer, pet_skill_support_timer); else delete_timer(pd->s_skill->timer, pet_heal_timer); - pd->s_skill->timer = -1; + pd->s_skill->timer = INVALID_TIMER; } if (pd->bonus && pd->bonus->timer != -1) { delete_timer(pd->bonus->timer, pet_skill_bonus_timer); - pd->bonus->timer = -1; + pd->bonus->timer = INVALID_TIMER; } } @@ -1088,7 +1088,7 @@ int pet_skill_bonus_timer(int tid, unsigned int tick, int id, intptr data) if(pd->bonus->timer != tid) { ShowError("pet_skill_bonus_timer %d != %d\n",pd->bonus->timer,tid); - pd->bonus->timer = -1; + pd->bonus->timer = INVALID_TIMER; return 0; } @@ -1100,7 +1100,7 @@ int pet_skill_bonus_timer(int tid, unsigned int tick, int id, intptr data) bonus = 1; timer = pd->bonus->duration*1000; // the duration for pet bonuses to be in effect } else { //Lost pet... - pd->bonus->timer = -1; + pd->bonus->timer = INVALID_TIMER; return 0; } @@ -1139,7 +1139,7 @@ int pet_recovery_timer(int tid, unsigned int tick, int id, intptr data) clif_emotion(&pd->bl, 33); } - pd->recovery->timer = -1; + pd->recovery->timer = INVALID_TIMER; return 0; } -- cgit v1.2.3-60-g2f50