diff options
author | shennetsind <ind@henn.et> | 2013-11-30 14:44:44 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-11-30 14:44:44 -0200 |
commit | 6fc1cae2088dd9f450e15728ca4bf4a82fcb8070 (patch) | |
tree | 1b43199b27c13d9db23d14a012c41a5b68bda577 /src/map/clif.c | |
parent | 098dbcf672e04657553b9f1629550e6bc8771af3 (diff) | |
download | hercules-6fc1cae2088dd9f450e15728ca4bf4a82fcb8070.tar.gz hercules-6fc1cae2088dd9f450e15728ca4bf4a82fcb8070.tar.bz2 hercules-6fc1cae2088dd9f450e15728ca4bf4a82fcb8070.tar.xz hercules-6fc1cae2088dd9f450e15728ca4bf4a82fcb8070.zip |
Minor adjustments
- improved @makehomun -1 so that if the homun data hasnt been loaded it is requested.
- instances of private types (party/guild/char) no longer create channels, however global types still does (IOT_NONE).
- Fixed an issue with party/guild instance data not being freed when either is destroyed (Special Thanks to Yommy).
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index a383617b5..2257df0aa 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -9164,6 +9164,10 @@ void clif_parse_WantToConnection(int fd, struct map_session_data* sd) { } void clif_hercules_chsys_mjoin(struct map_session_data *sd) { if( !map->list[sd->bl.m].channel ) { + + if (map->list[sd->bl.m].flag.chsysnolocalaj || (map->list[sd->bl.m].instance_id >= 0 && instance->list[map->list[sd->bl.m].instance_id].owner_type != IOT_NONE) ) + return; + CREATE(map->list[sd->bl.m].channel, struct hChSysCh , 1); safestrncpy(map->list[sd->bl.m].channel->name, hChSys.local_name, HCHSYS_NAME_LENGTH); map->list[sd->bl.m].channel->type = hChSys_MAP; @@ -9453,7 +9457,7 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd) { status_calc_pc(sd, SCO_NONE);/* some conditions are map-dependent so we must recalculate */ sd->state.changemap = false; - if( hChSys.local && hChSys.local_autojoin && !map->list[sd->bl.m].flag.chsysnolocalaj ) { + if( hChSys.local && hChSys.local_autojoin ) { clif->chsys_mjoin(sd); } } |