Skip to content

Commit

Permalink
Fix pause after loading round backup
Browse files Browse the repository at this point in the history
  • Loading branch information
JensForstmann committed Oct 9, 2023
1 parent b4c4360 commit c01dcff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/match.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ export const getRoundBackups = async (match: Match, count: number = 5) => {

export const loadRoundBackup = async (match: Match, file: string) => {
await execRcon(match, 'mp_backup_restore_load_autopause 1');
await execRcon(match, 'mp_pause_match'); // mp_backup_restore_load_autopause doesn't work currently in CS2
const response = await execRcon(match, `mp_backup_restore_load_file "${file}"`);
if (response.includes('Failed to load file:')) {
match.log(`Error loading round backup: ${response}`);
Expand Down

0 comments on commit c01dcff

Please sign in to comment.