Преглед на файлове

Fixes an issue with players joining active BG (#6105)

* Fixes a timer not getting removed from players when they join an active battleground. The timer would continue after accepting the invite and would eventually remove the player from the queue resulting in the player getting the "Left queue time penalty".
Aleos преди 3 години
родител
ревизия
3287388b05
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      src/map/battleground.cpp

+ 2 - 0
src/map/battleground.cpp

@@ -1348,6 +1348,8 @@ void bg_join_active(map_session_data *sd, std::shared_ptr<s_battleground_queue>
 		return;
 	}
 
+	pc_delete_bg_queue_timer(sd); // Cancel timer so player doesn't leave the queue.
+
 	int bg_id_team_1 = static_cast<int>(mapreg_readreg(add_str(queue->map->team1.bg_id_var.c_str())));
 	std::shared_ptr<s_battleground_data> bgteam_1 = util::umap_find(bg_team_db, bg_id_team_1);