Browse Source

Use engine export for enttools client print

gravgun
mittorn 6 years ago
parent
commit
95ccc3b2bb
  1. 4
      dlls/enttools.cpp
  2. 2
      dlls/gravgunmod.cpp

4
dlls/enttools.cpp

@ -192,10 +192,10 @@ void Ent_ClientPrintf( edict_t *player, const char *format, ... )
va_end( argptr ); va_end( argptr );
string[len] = 0; 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 ) static edict_t *Ent_GetCrossEnt( edict_t *player )
{ {
edict_t *ent = g_engfuncs.pfnPEntityOfEntIndex(1); edict_t *ent = g_engfuncs.pfnPEntityOfEntIndex(1);

2
dlls/gravgunmod.cpp

@ -751,7 +751,7 @@ bool GGM_ClientCommand( CBasePlayer *pPlayer, const char *pcmd )
} }
else if( COOP_ClientCommand( pPlayer->edict() ) ) else if( COOP_ClientCommand( pPlayer->edict() ) )
return true; return true;
else if( !Ent_ProcessClientCommand( pPlayer->edict() ) ) else if( Ent_ProcessClientCommand( pPlayer->edict() ) )
return true; return true;
return false; return false;

Loading…
Cancel
Save