From 1c32a8ef8c6aa96521c30f27b426518ac7a344ad Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 8 Mar 2022 05:32:31 +0000 Subject: [PATCH] Fix map_restart command. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6214 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/svq3_game.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/engine/server/svq3_game.c b/engine/server/svq3_game.c index 9238b2579..c75302d81 100644 --- a/engine/server/svq3_game.c +++ b/engine/server/svq3_game.c @@ -1607,7 +1607,8 @@ static qintptr_t EXPORT_FN Q3G_SystemCallsNative(qintptr_t arg, ...) void SVQ3_ShutdownGame(qboolean restarting) { int i; - CG_Stop(); + if (!restarting) + CG_Stop(); if (!q3gamevm) return; @@ -1622,10 +1623,7 @@ void SVQ3_ShutdownGame(qboolean restarting) plugfuncs->GFreeAll(&botlibhunkmem); VM_fcloseall(Z_TAG_BOTLIB); #endif - } - if (!restarting) - { for (i = 0; i < countof(svq3_configstrings); i++) { if (svq3_configstrings[i])