Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

Commit 5a49f82

Browse files
committed
Fix restore file naming
1 parent c4b9c95 commit 5a49f82

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/adminsystem.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,9 @@ CON_COMMAND_CHAT(restore, "Restore round")
176176

177177
int nRounds = atoi(args[1]);
178178

179-
V_snprintf(aux, MAX_PATH, "%s", backupFile);
179+
V_snprintf(buf, MAX_PATH, "%s", backupFile);
180180

181-
if ( nRounds < 10) V_snprintf(buf, MAX_PATH, "%s%i",aux, 0);
182-
183-
V_snprintf(aux, MAX_PATH, "%s%i.txt", buf, nRounds);
181+
V_snprintf(aux, MAX_PATH, "%s%02i.txt", buf, nRounds);
184182

185183
V_snprintf(buf, MAX_PATH, "mp_backup_restore_load_file %s", aux);
186184

0 commit comments

Comments
 (0)