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/mercenary.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/mercenary.c') diff --git a/src/map/mercenary.c b/src/map/mercenary.c index 05dcfa4c7..6a027029f 100644 --- a/src/map/mercenary.c +++ b/src/map/mercenary.c @@ -496,7 +496,7 @@ static int merc_hom_hungry(int tid, unsigned int tick, int id, intptr data) return 0; } - hd->hungry_timer = -1; + hd->hungry_timer = INVALID_TIMER; hd->homunculus.hunger-- ; if(hd->homunculus.hunger <= 10) { @@ -525,7 +525,7 @@ int merc_hom_hungry_timer_delete(struct homun_data *hd) nullpo_retr(0, hd); if(hd->hungry_timer != -1) { delete_timer(hd->hungry_timer,merc_hom_hungry); - hd->hungry_timer = -1; + hd->hungry_timer = INVALID_TIMER; } return 1; } @@ -634,7 +634,7 @@ int merc_hom_alloc(struct map_session_data *sd, struct s_homunculus *hom) map_addiddb(&hd->bl); status_calc_homunculus(hd,1); - hd->hungry_timer = -1; + hd->hungry_timer = INVALID_TIMER; return 0; } -- cgit v1.2.3-60-g2f50