diff --git a/code/ui/ui_main.c b/code/ui/ui_main.c index 7447d8d3..567e387b 100644 --- a/code/ui/ui_main.c +++ b/code/ui/ui_main.c @@ -3514,10 +3514,10 @@ static void UI_RunMenuScript(char **args) { } else { int i; for (i = 0; i < uiInfo.myTeamCount; i++) { - if (Q_stricmp(UI_Cvar_VariableString("name"), uiInfo.teamNames[i]) == 0) { + if (uiInfo.playerNumber == uiInfo.teamClientNums[i]) { continue; } - Com_sprintf( buff, sizeof( buff ), orders, uiInfo.teamNames[i] ); + Com_sprintf( buff, sizeof( buff ), orders, uiInfo.teamClientNums[i] ); trap_Cmd_ExecuteText( EXEC_APPEND, buff ); trap_Cmd_ExecuteText( EXEC_APPEND, "\n" ); }