diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-21 21:34:31 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-21 21:34:31 +0000 |
commit | bc9e0854a2c7336c6f7b4a388b5ff00b9f4865e8 (patch) | |
tree | 3aa7da07fc43116707de469034c7cf8186e8b2d5 /src/map/mob.c | |
parent | b21c980c03ea476e324c714a9ad2d5eff5cb981d (diff) | |
download | hercules-bc9e0854a2c7336c6f7b4a388b5ff00b9f4865e8.tar.gz hercules-bc9e0854a2c7336c6f7b4a388b5ff00b9f4865e8.tar.bz2 hercules-bc9e0854a2c7336c6f7b4a388b5ff00b9f4865e8.tar.xz hercules-bc9e0854a2c7336c6f7b4a388b5ff00b9f4865e8.zip |
* Changed the data field of timers from int to intptr.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12633 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index bb81a779d..2288227b4 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -76,7 +76,7 @@ static DBMap* barricade_db; * Local prototype declaration (only required thing) *------------------------------------------*/ static int mob_makedummymobdb(int); -static int mob_spawn_guardian_sub(int,unsigned int,int,int); +static int mob_spawn_guardian_sub(int tid, unsigned int tick, int id, intptr data); int mobskill_use(struct mob_data *md,unsigned int tick,int event); int mob_skillid2skillidx(int class_,int skillid); @@ -672,7 +672,7 @@ void mod_barricade_clearall(void) /*========================================== * Set a Guardian's guild data [Skotlex] *------------------------------------------*/ -static int mob_spawn_guardian_sub(int tid,unsigned int tick,int id,int data) +static int mob_spawn_guardian_sub(int tid, unsigned int tick, int id, intptr data) { //Needed because the guild_data may not be available at guardian spawn time. struct block_list* bl = map_id2bl(id); struct mob_data* md; @@ -690,11 +690,11 @@ static int mob_spawn_guardian_sub(int tid,unsigned int tick,int id,int data) md = (struct mob_data*)bl; nullpo_retr(0, md->guardian_data); - g = guild_search(data); + g = guild_search((int)data); if (g == NULL) { //Liberate castle, if the guild is not found this is an error! [Skotlex] - ShowError("mob_spawn_guardian_sub: Couldn't load guild %d!\n",data); + ShowError("mob_spawn_guardian_sub: Couldn't load guild %d!\n", (int)data); if (md->class_ == MOBID_EMPERIUM) { //Not sure this is the best way, but otherwise we'd be invoking this for ALL guardians spawned later on. md->guardian_data->guild_id = 0; @@ -887,9 +887,9 @@ int mob_linksearch(struct block_list *bl,va_list ap) /*========================================== * mob spawn with delay (timer function) *------------------------------------------*/ -static int mob_delayspawn(int tid, unsigned int tick, int m, int n) +static int mob_delayspawn(int tid, unsigned int tick, int id, intptr data) { - struct block_list *bl = map_id2bl(m); + struct block_list *bl = map_id2bl(id); if (bl && bl->type == BL_MOB) mob_spawn((TBL_MOB*)bl); return 0; @@ -1751,7 +1751,7 @@ static int mob_ai_sub_lazy(DBKey key,void * data,va_list ap) /*========================================== * Negligent processing for mob outside PC field of view (interval timer function) *------------------------------------------*/ -static int mob_ai_lazy(int tid,unsigned int tick,int id,int data) +static int mob_ai_lazy(int tid, unsigned int tick, int id, intptr data) { map_foreachmob(mob_ai_sub_lazy,tick); return 0; @@ -1760,7 +1760,7 @@ static int mob_ai_lazy(int tid,unsigned int tick,int id,int data) /*========================================== * Serious processing for mob in PC field of view (interval timer function) *------------------------------------------*/ -static int mob_ai_hard(int tid,unsigned int tick,int id,int data) +static int mob_ai_hard(int tid, unsigned int tick, int id, intptr data) { if (battle_config.mob_ai&0x20) @@ -1799,7 +1799,7 @@ static struct item_drop* mob_setlootitem(struct item* item) /*========================================== * item drop with delay (timer function) *------------------------------------------*/ -static int mob_delay_item_drop(int tid, unsigned int tick, int id, int data) +static int mob_delay_item_drop(int tid, unsigned int tick, int id, intptr data) { struct item_drop_list *list; struct item_drop *ditem, *ditem_prev; @@ -1858,7 +1858,7 @@ static void mob_item_drop(struct mob_data *md, struct item_drop_list *dlist, str dlist->item = ditem; } -int mob_timer_delete(int tid, unsigned int tick, int id, int data) +int mob_timer_delete(int tid, unsigned int tick, int id, intptr data) { struct block_list *bl=map_id2bl(id); nullpo_retr(0, bl); @@ -1927,12 +1927,12 @@ int mob_deleteslave(struct mob_data *md) return 0; } // Mob respawning through KAIZEL or NPC_REBIRTH [Skotlex] -int mob_respawn(int tid, unsigned int tick, int id,int data ) +int mob_respawn(int tid, unsigned int tick, int id, intptr data) { struct block_list *bl = map_id2bl(id); if(!bl) return 0; - status_revive(bl, data, 0); + status_revive(bl, (uint8)data, 0); return 1; } |