summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-09-28 12:49:34 -0300
committershennetsind <ind@henn.et>2013-09-28 12:49:34 -0300
commite4b0f270ad0fabab869c1a803fa8e4a73f198760 (patch)
tree45f5f5f40e85f2d10e20ca55f6148accfe954a33 /src/map/party.c
parent3c006ce2b772ae0dffc5fccaee6e547bf0423565 (diff)
downloadhercules-e4b0f270ad0fabab869c1a803fa8e4a73f198760.tar.gz
hercules-e4b0f270ad0fabab869c1a803fa8e4a73f198760.tar.bz2
hercules-e4b0f270ad0fabab869c1a803fa8e4a73f198760.tar.xz
hercules-e4b0f270ad0fabab869c1a803fa8e4a73f198760.zip
HPM: Instance.c Completed
Moved missing vars and declarations of interest into the interface. Instance data now available to plugins via instance->list (struct instance_data array) Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/party.c')
-rw-r--r--src/map/party.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/party.c b/src/map/party.c
index a4eb38629..db4b88f7d 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -319,7 +319,7 @@ int party_recv_info(struct party* sp, int char_id)
clif->party_info(p,NULL);
for( j = 0; j < p->instances; j++ ) {
if( p->instance[j] >= 0 ) {
- if( instances[p->instance[j]].idle_timer == INVALID_TIMER && instances[p->instance[j]].progress_timer == INVALID_TIMER )
+ if( instance->list[p->instance[j]].idle_timer == INVALID_TIMER && instance->list[p->instance[j]].progress_timer == INVALID_TIMER )
continue;
clif->instance_join(sd->fd, p->instance[j]);
break;
@@ -442,7 +442,7 @@ void party_member_joined(struct map_session_data *sd)
p->data[i].sd = sd;
for( j = 0; j < p->instances; j++ ) {
if( p->instance[j] >= 0 ) {
- if( instances[p->instance[j]].idle_timer == INVALID_TIMER && instances[p->instance[j]].progress_timer == INVALID_TIMER )
+ if( instance->list[p->instance[j]].idle_timer == INVALID_TIMER && instance->list[p->instance[j]].progress_timer == INVALID_TIMER )
continue;
clif->instance_join(sd->fd, p->instance[j]);
break;
@@ -504,7 +504,7 @@ int party_member_added(int party_id,int account_id,int char_id, int flag) {
for( j = 0; j < p->instances; j++ ) {
if( p->instance[j] >= 0 ) {
- if( instances[p->instance[j]].idle_timer == INVALID_TIMER && instances[p->instance[j]].progress_timer == INVALID_TIMER )
+ if( instance->list[p->instance[j]].idle_timer == INVALID_TIMER && instance->list[p->instance[j]].progress_timer == INVALID_TIMER )
continue;
clif->instance_join(sd->fd, p->instance[j]);
break;
@@ -604,7 +604,7 @@ int party_broken(int party_id)
for( j = 0; j < p->instances; j++ ) {
if( p->instance[j] >= 0 ) {
instance->destroy( p->instance[j] );
- instances[p->instance[j]].owner_id = 0;
+ instance->list[p->instance[j]].owner_id = 0;
}
}