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/mob.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/mob.c')
-rw-r--r-- | src/map/mob.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 270b9ebd4..74dc4cb05 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -228,7 +228,7 @@ struct mob_data* mob_spawn_dataset(struct spawn_data *data) if(md->db->status.mode&MD_LOOTER) md->lootitem = (struct item *)aCalloc(LOOTITEM_SIZE,sizeof(struct item)); - md->deletetimer = -1; + md->deletetimer = INVALID_TIMER; md->skillidx = -1; status_set_viewdata(&md->bl, md->class_); status_change_init(&md->bl); @@ -1007,7 +1007,7 @@ int mob_spawn (struct mob_data *md) md->attacked_id = 0; md->target_id = 0; md->move_fail_count = 0; - md->spawn_timer = -1; + md->spawn_timer = INVALID_TIMER; // md->master_id = 0; md->master_dist = 0; @@ -1903,8 +1903,8 @@ int mob_timer_delete(int tid, unsigned int tick, int id, intptr data) nullpo_retr(0, bl); if (bl->type != BL_MOB) return 0; //?? -//for Alchemist CANNIBALIZE [Lupus] - ((TBL_MOB*)bl)->deletetimer = -1; + //for Alchemist CANNIBALIZE [Lupus] + ((TBL_MOB*)bl)->deletetimer = INVALID_TIMER; unit_free(bl,3); return 0; } @@ -2579,7 +2579,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) if(md->deletetimer!=-1) { delete_timer(md->deletetimer,mob_timer_delete); - md->deletetimer=-1; + md->deletetimer = INVALID_TIMER; } mob_deleteslave(md); |