diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-07-26 14:22:28 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-07-26 14:22:28 +0000 |
commit | b6373365e5ac7ccf01c124fcebce6faba2d7519c (patch) | |
tree | 9f48c4b8dfa8c47d119961a55a8503ed9e3551e6 /src/map/pet.c | |
parent | 81d811f3c35d37e358f6874dd702923a0a934275 (diff) | |
download | hercules-b6373365e5ac7ccf01c124fcebce6faba2d7519c.tar.gz hercules-b6373365e5ac7ccf01c124fcebce6faba2d7519c.tar.bz2 hercules-b6373365e5ac7ccf01c124fcebce6faba2d7519c.tar.xz hercules-b6373365e5ac7ccf01c124fcebce6faba2d7519c.zip |
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
Diffstat (limited to 'src/map/pet.c')
-rw-r--r-- | src/map/pet.c | 14 |
1 files changed, 7 insertions, 7 deletions
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; } |