balance team on player join
This commit is contained in:
@@ -134,5 +134,10 @@ void ServerGame::OnGameClose() {
|
||||
m_Server->Restart();
|
||||
}
|
||||
|
||||
void ServerGame::OnPlayerJoin(game::PlayerID id){
|
||||
if (m_GameState == game::GameState::Game)
|
||||
BalanceTeams();
|
||||
}
|
||||
|
||||
} // namespace game
|
||||
} // namespace td
|
||||
|
||||
Reference in New Issue
Block a user