diff options
author | Haru <haru@dotalux.com> | 2015-01-22 00:28:24 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-01-24 14:37:25 +0100 |
commit | fc50b63d454f59620e0d3ef6674bd9ae54a6175f (patch) | |
tree | 35bcd04fd592a40aca634995cca3fe33031fc5c4 /src/map/pc.c | |
parent | a75714ca455c728d34918dd12200fcec87ebc0d4 (diff) | |
download | hercules-fc50b63d454f59620e0d3ef6674bd9ae54a6175f.tar.gz hercules-fc50b63d454f59620e0d3ef6674bd9ae54a6175f.tar.bz2 hercules-fc50b63d454f59620e0d3ef6674bd9ae54a6175f.tar.xz hercules-fc50b63d454f59620e0d3ef6674bd9ae54a6175f.zip |
Moved the Hercules Channel System to its own file/interface
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 806bfb42c..a301f8ada 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -15,6 +15,7 @@ #include "atcommand.h" // get_atcommand_level() #include "battle.h" // battle_config #include "battleground.h" +#include "channel.h" #include "chat.h" #include "chrif.h" #include "clif.h" @@ -5042,8 +5043,8 @@ int pc_setpos(struct map_session_data* sd, unsigned short map_index, int x, int vending->close(sd); } - 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); + if (channel->config->local && map->list[sd->bl.m].channel && idb_exists(map->list[sd->bl.m].channel->users, sd->status.char_id)) { + channel->leave(map->list[sd->bl.m].channel,sd); } } |