Fix dedicated compiling errors

This commit is contained in:
Alibek Omarov
2018-06-14 20:31:46 +03:00
parent b5c621ae36
commit d0ff201da2
7 changed files with 15 additions and 6 deletions

View File

@@ -668,8 +668,10 @@ print into window console
*/
void Sys_Print( const char *pMsg )
{
#ifndef XASH_DEDICATED
if( !Host_IsDedicated() )
Con_Print( pMsg );
#endif
#ifdef _WIN32
{
@@ -680,8 +682,10 @@ void Sys_Print( const char *pMsg )
char *c = logbuf;
int i = 0;
if( host.type == HOST_NORMAL )
#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 )