summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-15 05:29:58 -0300
committershennetsind <ind@henn.et>2013-06-15 05:29:58 -0300
commit1edc31980be653e6482e4920862ac5d6ab0dd916 (patch)
treec7ec9afca830cd8c83c839e34ca02728ad2b727b /src/map/clif.c
parent8fb06fb0d7d89b31204519bacd72ab078bb8480d (diff)
downloadhercules-1edc31980be653e6482e4920862ac5d6ab0dd916.tar.gz
hercules-1edc31980be653e6482e4920862ac5d6ab0dd916.tar.bz2
hercules-1edc31980be653e6482e4920862ac5d6ab0dd916.tar.xz
hercules-1edc31980be653e6482e4920862ac5d6ab0dd916.zip
bg queue minor progress
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index e8de09d70..0c2d16a4d 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -17399,8 +17399,14 @@ void clif_parse_bgqueue_revoke_req(int fd, struct map_session_data *sd) {
}
void clif_parse_bgqueue_battlebegin_ack(int fd, struct map_session_data *sd) {
- //struct packet_bgqueue_battlebegin_ack *p = P2PTR(fd, bgqueue_checkstateType);
- return;
+ struct packet_bgqueue_battlebegin_ack *p = P2PTR(fd, bgqueue_checkstateType);
+ struct bg_arena *arena;
+ if( !bg->queue_on ) return; /* temp, until feature is complete */
+ if( ( arena = bg->name2arena(p->bg_name) ) ) {
+ bg->queue_ready_ack(arena,sd, ( p->result == 1 ) ? true : false);
+ } else {
+ clif->bgqueue_ack(sd,BGQA_FAIL_BGNAME_INVALID, 0);
+ }
//if ( p->result == 1 )
// bg->queue_pc_ready(sd);
//else