mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
Add missing return statements to AttemptJoinTeam
This commit is contained in:
parent
2fda94aa35
commit
1c6e629a9b
|
@ -962,11 +962,13 @@ void CGameContext::AttemptJoinTeam(int ClientID, int Team)
|
|||
IConsole::OUTPUT_LEVEL_STANDARD,
|
||||
"chatresp",
|
||||
"You are running a vote please try again after the vote is done!");
|
||||
return;
|
||||
}
|
||||
else if(g_Config.m_SvTeam == SV_TEAM_FORBIDDEN || g_Config.m_SvTeam == SV_TEAM_FORCED_SOLO)
|
||||
{
|
||||
Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "chatresp",
|
||||
"Teams are disabled");
|
||||
return;
|
||||
}
|
||||
else if(g_Config.m_SvTeam == SV_TEAM_MANDATORY && Team == 0 && pPlayer->GetCharacter() && pPlayer->GetCharacter()->m_LastStartWarning < Server()->Tick() - 3 * Server()->TickSpeed())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue