From 52f4e89d996f571818794f0659e7a88187de0466 Mon Sep 17 00:00:00 2001 From: sezero Date: Sat, 26 Jun 2010 00:31:12 +0000 Subject: [PATCH] host.c (Host_Shutdown): Write the console command history file only if not a dedicated server. Same for shutting down the CDAudio and sound subsystems. git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@231 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/host.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Quake/host.c b/Quake/host.c index ab076a6e..4ae229eb 100644 --- a/Quake/host.c +++ b/Quake/host.c @@ -890,15 +890,14 @@ void Host_Shutdown(void) Host_WriteConfiguration (); - if (con_initialized) - History_Shutdown (); - - CDAudio_Shutdown (); NET_Shutdown (); - S_Shutdown(); if (cls.state != ca_dedicated) { + if (con_initialized) + History_Shutdown (); + CDAudio_Shutdown (); + S_Shutdown (); IN_Shutdown (); // input is only initialized in Host_Init if we're not dedicated -- kristian VID_Shutdown(); }