diff options
author | Haruna <haru@dotalux.com> | 2015-01-24 14:38:39 +0100 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2015-01-24 14:38:39 +0100 |
commit | 6f3a82487fdffabf221a9a2dfc5ace027c333f95 (patch) | |
tree | 76f2ba97a955d0724949b5f233a81bcd4ea8cf52 /src/map/pc.c | |
parent | a75714ca455c728d34918dd12200fcec87ebc0d4 (diff) | |
parent | 28eda3cd3dd7f8031668fdd8ba463e5661246348 (diff) | |
download | hercules-6f3a82487fdffabf221a9a2dfc5ace027c333f95.tar.gz hercules-6f3a82487fdffabf221a9a2dfc5ace027c333f95.tar.bz2 hercules-6f3a82487fdffabf221a9a2dfc5ace027c333f95.tar.xz hercules-6f3a82487fdffabf221a9a2dfc5ace027c333f95.zip |
Merge pull request #452 from HerculesWS/channel_refactor
Hercules Channel System refactor
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..2013bb652 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 (map->list[sd->bl.m].channel) { + channel->leave(map->list[sd->bl.m].channel,sd); } } |