summaryrefslogtreecommitdiff
path: root/src/map/battleground.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-09-14 15:00:02 +0200
committerHaru <haru@dotalux.com>2015-11-14 19:03:36 +0100
commit778db38c4a584cbc3a8a9e56fcef54447e9bee47 (patch)
tree7175b7b09bb4a6feddb879c2689fb4f18392b63b /src/map/battleground.c
parent1c9e25d58901e9c5bcea6bcbe885bd9c3eb5c72b (diff)
downloadhercules-778db38c4a584cbc3a8a9e56fcef54447e9bee47.tar.gz
hercules-778db38c4a584cbc3a8a9e56fcef54447e9bee47.tar.bz2
hercules-778db38c4a584cbc3a8a9e56fcef54447e9bee47.tar.xz
hercules-778db38c4a584cbc3a8a9e56fcef54447e9bee47.zip
Renamed hQueue/hQueueIterator/hQueueOpt to latest standards
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/battleground.c')
-rw-r--r--src/map/battleground.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/battleground.c b/src/map/battleground.c
index cbf859b80..2b7614761 100644
--- a/src/map/battleground.c
+++ b/src/map/battleground.c
@@ -472,7 +472,7 @@ struct bg_arena *bg_name2arena (char *name) {
return NULL;
}
int bg_id2pos ( int queue_id, int account_id ) {
- struct hQueue *queue = script->queue(queue_id);
+ struct script_queue *queue = script->queue(queue_id);
if( queue ) {
int i, pos = 1;
for(i = 0; i < queue->size; i++ ) {
@@ -496,7 +496,7 @@ void bg_queue_ready_ack (struct bg_arena *arena, struct map_session_data *sd, bo
if( !response )
bg->queue_pc_cleanup(sd);
else {
- struct hQueue *queue = script->queue(arena->queue_id);
+ struct script_queue *queue = script->queue(arena->queue_id);
int i, count = 0;
sd->bg_queue.ready = 1;
@@ -531,7 +531,7 @@ void bg_queue_player_cleanup(struct map_session_data *sd) {
sd->bg_queue.type = 0;
}
void bg_match_over(struct bg_arena *arena, bool canceled) {
- struct hQueue *queue = script->queue(arena->queue_id);
+ struct script_queue *queue = script->queue(arena->queue_id);
int i;
nullpo_retv(arena);
@@ -560,7 +560,7 @@ void bg_match_over(struct bg_arena *arena, bool canceled) {
script->queue_clear(arena->queue_id);
}
void bg_begin(struct bg_arena *arena) {
- struct hQueue *queue = script->queue(arena->queue_id);
+ struct script_queue *queue = script->queue(arena->queue_id);
int i, count = 0;
nullpo_retv(arena);
@@ -645,7 +645,7 @@ int bg_afk_timer(int tid, int64 tick, int id, intptr_t data) {
}
void bg_queue_pregame(struct bg_arena *arena) {
- struct hQueue *queue;
+ struct script_queue *queue;
int i;
nullpo_retv(arena);
@@ -667,7 +667,7 @@ int bg_fillup_timer(int tid, int64 tick, int id, intptr_t data) {
void bg_queue_check(struct bg_arena *arena) {
int count;
- struct hQueue *queue;
+ struct script_queue *queue;
nullpo_retv(arena);
queue = script->queue(arena->queue_id);
@@ -684,7 +684,7 @@ void bg_queue_check(struct bg_arena *arena) {
}
void bg_queue_add(struct map_session_data *sd, struct bg_arena *arena, enum bg_queue_types type) {
enum BATTLEGROUNDS_QUEUE_ACK result = bg->can_queue(sd,arena,type);
- struct hQueue *queue;
+ struct script_queue *queue = NULL;
int i, count = 0;
nullpo_retv(sd);