From 95ccc3b2bb71de51d0a325a4da097cb5b77dd436 Mon Sep 17 00:00:00 2001 From: mittorn Date: Thu, 2 Aug 2018 18:40:15 +0700 Subject: [PATCH] Use engine export for enttools client print --- dlls/enttools.cpp | 4 ++-- dlls/gravgunmod.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/enttools.cpp b/dlls/enttools.cpp index bc6d37a2..5f864cd0 100644 --- a/dlls/enttools.cpp +++ b/dlls/enttools.cpp @@ -192,10 +192,10 @@ void Ent_ClientPrintf( edict_t *player, const char *format, ... ) va_end( argptr ); string[len] = 0; - ClientPrint( &player->v, HUD_PRINTCONSOLE, string ); + //ClientPrint( &player->v, HUD_PRINTCONSOLE, string ); + CLIENT_PRINTF( player, print_console, string ); } - static edict_t *Ent_GetCrossEnt( edict_t *player ) { edict_t *ent = g_engfuncs.pfnPEntityOfEntIndex(1); diff --git a/dlls/gravgunmod.cpp b/dlls/gravgunmod.cpp index 58d72b3c..3dd1d86f 100644 --- a/dlls/gravgunmod.cpp +++ b/dlls/gravgunmod.cpp @@ -751,7 +751,7 @@ bool GGM_ClientCommand( CBasePlayer *pPlayer, const char *pcmd ) } else if( COOP_ClientCommand( pPlayer->edict() ) ) return true; - else if( !Ent_ProcessClientCommand( pPlayer->edict() ) ) + else if( Ent_ProcessClientCommand( pPlayer->edict() ) ) return true; return false;