From bff9ca8438291be9deb5de4e76941c61d428d823 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 10 Oct 2018 23:43:03 +0300 Subject: [PATCH] console: fix double printed console messages on Win32 --- engine/common/system.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/engine/common/system.c b/engine/common/system.c index 4ca7fa51..3b02986a 100644 --- a/engine/common/system.c +++ b/engine/common/system.c @@ -670,7 +670,9 @@ void Sys_Print( const char *pMsg ) { #ifndef XASH_DEDICATED if( !Host_IsDedicated() ) + { Con_Print( pMsg ); + } #endif #ifdef _WIN32 @@ -682,11 +684,6 @@ void Sys_Print( const char *pMsg ) char *c = logbuf; int i = 0; -#ifndef XASH_DEDICATED - if( !Host_IsDedicated() ) - Con_Print( pMsg ); -#endif - // if the message is REALLY long, use just the last portion of it if( Q_strlen( pMsg ) > sizeof( buffer ) - 1 ) msg = pMsg + Q_strlen( pMsg ) - sizeof( buffer ) + 1;