summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-26 14:22:28 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-26 14:22:28 +0000
commitb6373365e5ac7ccf01c124fcebce6faba2d7519c (patch)
tree9f48c4b8dfa8c47d119961a55a8503ed9e3551e6 /src/map/map.c
parent81d811f3c35d37e358f6874dd702923a0a934275 (diff)
downloadhercules-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/map.c')
-rw-r--r--src/map/map.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/map.c b/src/map/map.c
index eab6a9f7a..07d353aed 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -2070,7 +2070,7 @@ void map_spawnmobs(int m)
if (map[m].mob_delete_timer != -1)
{ //Mobs have not been removed yet [Skotlex]
delete_timer(map[m].mob_delete_timer, map_removemobs_timer);
- map[m].mob_delete_timer = -1;
+ map[m].mob_delete_timer = INVALID_TIMER;
return;
}
for(i=0; i<MAX_MOB_LIST_PER_MAP; i++)
@@ -2122,7 +2122,7 @@ int map_removemobs_timer(int tid, unsigned int tick, int id, intptr data)
ShowError("map_removemobs_timer mismatch: %d != %d (map %s)\n",map[m].mob_delete_timer, tid, map[m].name);
return 0;
}
- map[m].mob_delete_timer = -1;
+ map[m].mob_delete_timer = INVALID_TIMER;
if (map[m].users > 0) //Map not empty!
return 1;
@@ -2738,7 +2738,7 @@ int map_readallmaps (void)
map[i].m = i;
memset(map[i].moblist, 0, sizeof(map[i].moblist)); //Initialize moblist [Skotlex]
- map[i].mob_delete_timer = -1; //Initialize timer [Skotlex]
+ map[i].mob_delete_timer = INVALID_TIMER; //Initialize timer [Skotlex]
if(battle_config.pk_mode)
map[i].flag.pvp = 1; // make all maps pvp for pk_mode [Valaris]