From e487fc8e275343f8981f1edff723bbcd053e22ad Mon Sep 17 00:00:00 2001 From: Ashutosh Kumar Date: Fri, 29 Sep 2023 18:46:13 +0530 Subject: [PATCH] Update game.js map command crashing the server on map change changelevel is fine --- routes/game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/game.js b/routes/game.js index e89e750..dbd2a10 100644 --- a/routes/game.js +++ b/routes/game.js @@ -24,7 +24,7 @@ router.post('/api/setup-game', is_authenticated, async (req, res) => { execute_cfg_on_server(server_id, './cfg/live_wingman.cfg'); } rcon.rcons[server_id].execute(`mp_warmup_pausetimer 1`); - rcon.rcons[server_id].execute(`map ${selected_map}`); + rcon.rcons[server_id].execute(`changelevel ${selected_map}`); // Adding 1 second delay in executing warmup.cfg to make it effective after map has been changed. setTimeout(() => { @@ -256,4 +256,4 @@ function execute_cfg_on_server(server_id, cfg_path) { module.exports = { router -}; \ No newline at end of file +};