a gift for btd

This commit is contained in:
GreYFoXGTi 2010-10-31 19:47:10 +02:00
parent b68e97b354
commit c704a4ee95
2 changed files with 8 additions and 3 deletions

View file

@ -150,4 +150,5 @@ MACRO_CONFIG_INT(SvTeam, sv_team, 0, -1, 1, CFGFLAG_SERVER, "Teams configuration
MACRO_CONFIG_INT(SvTeamStrict, sv_team_strict, 0, 0, 1, CFGFLAG_SERVER, "Kill or not all team if someone left game in team", 4)
MACRO_CONFIG_INT(ConnTimeout, conn_timeout, 15, 5, 100, CFGFLAG_CLIENT|CFGFLAG_SERVER, "Network timeout", 4)
MACRO_CONFIG_INT(DbgCGCore, dbg_gcore, 0, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SERVER, "Whether to display the annoying GameCore dbg_msgs or not", 3)
#endif

View file

@ -1,5 +1,6 @@
// copyright (c) 2007 magnus auvinen, see licence.txt for more info
#include "gamecore.h"
#include <engine/shared/config.h>
const char *CTuningParams::m_apNames[] =
{
@ -242,9 +243,12 @@ void CCharacterCore::Tick(bool UseInput)
for(int i = 0; i < MAX_CLIENTS; i++)
{
CCharacterCore *p = m_pWorld->m_apCharacters[i];
char aBuf[512];
str_format(aBuf, sizeof(aBuf), "ThisId = %d Id = %d Team = %d", m_Id, i, m_pTeams->Team(i));
dbg_msg("GameCore", aBuf);
if(g_Config.m_DbgCGCore)
{
char aBuf[512];
str_format(aBuf, sizeof(aBuf), "ThisId = %d Id = %d Team = %d", m_Id, i, m_pTeams->Team(i));
dbg_msg("GameCore", aBuf);
}
if(!p || p == this || !m_pTeams->CanCollide(i, m_Id))
continue;