mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
a gift for btd
This commit is contained in:
parent
b68e97b354
commit
c704a4ee95
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue