diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-03 16:05:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-06 16:16:08 +0300 |
commit | a420b092af7d39f75a09888784f4a828d12eff6c (patch) | |
tree | 38b430321d92d222f8752bb2e19df1a0b8320bcd /src/map/map.c | |
parent | 95e00b5f0180131bf035bd9f52c83c2788ad10d9 (diff) | |
download | hercules-a420b092af7d39f75a09888784f4a828d12eff6c.tar.gz hercules-a420b092af7d39f75a09888784f4a828d12eff6c.tar.bz2 hercules-a420b092af7d39f75a09888784f4a828d12eff6c.tar.xz hercules-a420b092af7d39f75a09888784f4a828d12eff6c.zip |
add channels config into clif interface.
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/map.c b/src/map/map.c index c379911d3..38610805f 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1787,7 +1787,7 @@ int map_quit(struct map_session_data *sd) { if( sd->bg_id && !sd->bg_queue.arena ) /* TODO: dump this chunk after bg_queue is fully enabled */ bg->team_leave(sd,BGTL_QUIT); - if( sd->state.autotrade && runflag != MAPSERVER_ST_SHUTDOWN && !hChSys.closing ) + if (sd->state.autotrade && runflag != MAPSERVER_ST_SHUTDOWN && !clif->hChSys->closing) pc->autotrade_update(sd,PAUC_REMOVE); skill->cooldown_save(sd); @@ -1844,7 +1844,7 @@ int map_quit(struct map_session_data *sd) { unit->remove_map(&sd->ed->bl,CLR_TELEPORT,ALC_MARK); } - if( hChSys.local && map->list[sd->bl.m].channel && idb_exists(map->list[sd->bl.m].channel->users, sd->status.char_id) ) { + if (clif->hChSys->local && map->list[sd->bl.m].channel && idb_exists(map->list[sd->bl.m].channel->users, sd->status.char_id)) { clif->chsys_left(map->list[sd->bl.m].channel,sd); } @@ -5340,7 +5340,7 @@ int do_final(void) { ShowStatus("Terminating...\n"); - hChSys.closing = true; + clif->hChSys->closing = true; HPM->event(HPET_FINAL); if (map->cpsd) aFree(map->cpsd); |