Skip to content

Commit

Permalink
Don't add ready tags to team names when restoring a backup.
Browse files Browse the repository at this point in the history
  • Loading branch information
splewis committed Feb 20, 2017
1 parent f4fd72d commit 1900cc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripting/get5/util.sp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ stock void SetTeamInfo(int csTeam, const char[] name, const char[] flag = "",

// Add Ready/Not ready tags to team name if in warmup.
char taggedName[MAX_CVAR_LENGTH];
if (g_GameState == GameState_Warmup || g_GameState == GameState_PreVeto) {
if ((g_GameState == GameState_Warmup || g_GameState == GameState_PreVeto) &&
!g_DoingBackupRestoreNow) {
MatchTeam matchTeam = CSTeamToMatchTeam(csTeam);
if (IsTeamReady(matchTeam)) {
Format(taggedName, sizeof(taggedName), "%T %s", "ReadyTag", LANG_SERVER, name);
Expand Down

0 comments on commit 1900cc3

Please sign in to comment.