diff options
author | shennetsind <notind@gmail.com> | 2013-05-17 11:08:38 -0700 |
---|---|---|
committer | shennetsind <notind@gmail.com> | 2013-05-17 11:08:38 -0700 |
commit | 080f7a22740225df70a488849587b462a5d6b1a3 (patch) | |
tree | 0c1dc751af9f06e1ce3729d271de301f78a4e611 /src/map/instance.c | |
parent | 754af15505f32237f8063e51ae9a1cb90788dff4 (diff) | |
parent | 25e848f1a0f9317d63106cae048a1ef838411cb2 (diff) | |
download | hercules-080f7a22740225df70a488849587b462a5d6b1a3.tar.gz hercules-080f7a22740225df70a488849587b462a5d6b1a3.tar.bz2 hercules-080f7a22740225df70a488849587b462a5d6b1a3.tar.xz hercules-080f7a22740225df70a488849587b462a5d6b1a3.zip |
Merge pull request #1 from Earisu/master
updating, with earisu's
Diffstat (limited to 'src/map/instance.c')
-rw-r--r-- | src/map/instance.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/instance.c b/src/map/instance.c index 44a208866..8ddde8b3e 100644 --- a/src/map/instance.c +++ b/src/map/instance.c @@ -88,7 +88,7 @@ int instance_create(int party_id, const char *name) memset( instance[i].map, 0x00, sizeof(instance[i].map) ); p->instance_id = i; - clif_instance(i, 1, 0); // Start instancing window + clif->instance(i, 1, 0); // Start instancing window ShowInfo("[Instance] Created: %s.\n", name); return i; } @@ -275,7 +275,7 @@ int instance_cleanup_sub(struct block_list *bl, va_list ap) { map_clearflooritem(bl); break; case BL_SKILL: - skill_delunit((struct skill_unit *) bl); + skill->delunit((struct skill_unit *) bl); break; } @@ -357,7 +357,7 @@ void instance_destroy(int instance_id) else type = 3; - clif_instance(instance_id, 5, type); // Report users this instance has been destroyed + clif->instance(instance_id, 5, type); // Report users this instance has been destroyed while( instance[instance_id].num_map && last != instance[instance_id].map[0] ) { // Remove all maps from instance @@ -403,13 +403,13 @@ void instance_check_idle(int instance_id) delete_timer(instance[instance_id].idle_timer, instance_destroy_timer); instance[instance_id].idle_timer = INVALID_TIMER; instance[instance_id].idle_timeout = 0; - clif_instance(instance_id, 3, 0); // Notify instance users normal instance expiration + clif->instance(instance_id, 3, 0); // Notify instance users normal instance expiration } else if( instance[instance_id].idle_timer == INVALID_TIMER && idle ) { instance[instance_id].idle_timeout = now + instance[instance_id].idle_timeoutval; instance[instance_id].idle_timer = add_timer( gettick() + (unsigned int)instance[instance_id].idle_timeoutval * 1000, instance_destroy_timer, instance_id, 0); - clif_instance(instance_id, 4, 0); // Notify instance users it will be destroyed of no user join it again in "X" time + clif->instance(instance_id, 4, 0); // Notify instance users it will be destroyed of no user join it again in "X" time } } @@ -453,7 +453,7 @@ void instance_set_timeout(int instance_id, unsigned int progress_timeout, unsign } if( instance[instance_id].idle_timer == INVALID_TIMER && instance[instance_id].progress_timer != INVALID_TIMER ) - clif_instance(instance_id, 3, 0); + clif->instance(instance_id, 3, 0); } /*-------------------------------------- @@ -463,7 +463,7 @@ void instance_check_kick(struct map_session_data *sd) { int16 m = sd->bl.m; - clif_instance_leave(sd->fd); + clif->instance_leave(sd->fd); if( map[m].instance_id ) { // User was on the instance map if( map[m].save.map ) |