summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-03-18 14:59:53 -0300
committershennetsind <ind@henn.et>2014-03-18 14:59:53 -0300
commit4cc9d5f91cf6276e28cc02bb75fc4158d28d553b (patch)
treedc1c82395e4996f9a862c52cb165a39bb43fecba /src/map/map.c
parent8ed83b91c0984b251740d0cb62870bf4ca889853 (diff)
downloadhercules-4cc9d5f91cf6276e28cc02bb75fc4158d28d553b.tar.gz
hercules-4cc9d5f91cf6276e28cc02bb75fc4158d28d553b.tar.bz2
hercules-4cc9d5f91cf6276e28cc02bb75fc4158d28d553b.tar.xz
hercules-4cc9d5f91cf6276e28cc02bb75fc4158d28d553b.zip
BG Queue Fixes & +++
Fixed issue where players would be able to join a ongoing game when queueing by meeting the criteria. Fixed/Implemented the maximum_afk_seconds setting. Fixed issue with the maxPlayers arena setting that'd cause the maximum to be less than specified. Added a new battlegrounds.conf setting "allowedTypes" for arenas in order for further customisation. Expect a few more soon. Special Thanks to AnnieRuru Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index a7e83cae3..51b717a16 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1685,7 +1685,7 @@ int map_quit(struct map_session_data *sd) {
npc->event_dequeue(sd);
if( sd->bg_id && !sd->bg_queue.arena ) /* TODO: dump this chunk after bg_queue is fully enabled */
- bg->team_leave(sd,1);
+ bg->team_leave(sd,BGTL_QUIT);
if( sd->state.autotrade && runflag != MAPSERVER_ST_SHUTDOWN && !hChSys.closing )
pc->autotrade_update(sd,PAUC_REMOVE);