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

Commit

Permalink
Fix restore file naming
Browse files Browse the repository at this point in the history
  • Loading branch information
marqdevx committed Oct 17, 2023
1 parent c4b9c95 commit 5a49f82
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/adminsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,9 @@ CON_COMMAND_CHAT(restore, "Restore round")

int nRounds = atoi(args[1]);

V_snprintf(aux, MAX_PATH, "%s", backupFile);
V_snprintf(buf, MAX_PATH, "%s", backupFile);

if ( nRounds < 10) V_snprintf(buf, MAX_PATH, "%s%i",aux, 0);

V_snprintf(aux, MAX_PATH, "%s%i.txt", buf, nRounds);
V_snprintf(aux, MAX_PATH, "%s%02i.txt", buf, nRounds);

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

Expand Down

0 comments on commit 5a49f82

Please sign in to comment.