mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed last commit, removed debug messages
This commit is contained in:
parent
5ab6286508
commit
4d6370d890
|
@ -1762,6 +1762,6 @@ void CServer::CheckPass(int ClientId, const char *pPw)
|
||||||
SetRconLevel(ClientId,0);
|
SetRconLevel(ClientId,0);
|
||||||
str_format(buf,sizeof(buf),buf,ClientId,0);
|
str_format(buf,sizeof(buf),buf,ClientId,0);
|
||||||
SendRconLine(ClientId, buf);
|
SendRconLine(ClientId, buf);
|
||||||
dbg_msg("server", "'%s' ClientId=%d authed with Level=%d", ClientName(ClientId), ClientId, level);
|
dbg_msg("server", "'%s' ClientId=%d authed with Level=%d", ClientName(ClientId), ClientId, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -239,27 +239,6 @@ void CCharacterCore::Tick(bool UseInput)
|
||||||
if(m_pWorld && m_pWorld->m_Tuning.m_PlayerHooking)
|
if(m_pWorld && m_pWorld->m_Tuning.m_PlayerHooking)
|
||||||
{
|
{
|
||||||
float Dist = 0.0f;
|
float Dist = 0.0f;
|
||||||
char aBuf[512];
|
|
||||||
str_format(aBuf, sizeof(aBuf), "m_Id = %d", m_Id);
|
|
||||||
dbg_msg("GameCore", aBuf);
|
|
||||||
str_format(aBuf, sizeof(aBuf), "Teams: 0:%d 1:%d 2:%d 3:%d 4:%d 5:%d 6:%d 7:%d 8:%d 9:%d 10:%d 11:%d 12:%d 13:%d 14:%d 15:%d",
|
|
||||||
m_pTeams->Team(0),
|
|
||||||
m_pTeams->Team(1),
|
|
||||||
m_pTeams->Team(2),
|
|
||||||
m_pTeams->Team(3),
|
|
||||||
m_pTeams->Team(4),
|
|
||||||
m_pTeams->Team(5),
|
|
||||||
m_pTeams->Team(6),
|
|
||||||
m_pTeams->Team(7),
|
|
||||||
m_pTeams->Team(8),
|
|
||||||
m_pTeams->Team(9),
|
|
||||||
m_pTeams->Team(10),
|
|
||||||
m_pTeams->Team(11),
|
|
||||||
m_pTeams->Team(12),
|
|
||||||
m_pTeams->Team(13),
|
|
||||||
m_pTeams->Team(14),
|
|
||||||
m_pTeams->Team(15));
|
|
||||||
dbg_msg("GameCore", aBuf);
|
|
||||||
for(int i = 0; i < MAX_CLIENTS; i++)
|
for(int i = 0; i < MAX_CLIENTS; i++)
|
||||||
{
|
{
|
||||||
CCharacterCore *p = m_pWorld->m_apCharacters[i];
|
CCharacterCore *p = m_pWorld->m_apCharacters[i];
|
||||||
|
|
|
@ -130,14 +130,11 @@ bool IGameController::OnEntity(int Index, vec2 Pos, bool Front)
|
||||||
int temp1=Pos.x;
|
int temp1=Pos.x;
|
||||||
int temp2=Pos.y;
|
int temp2=Pos.y;
|
||||||
|
|
||||||
dbg_msg("OnEntity","Index=%d Front=%d",Index,Front);//Remove*/
|
|
||||||
int Type = -1;
|
int Type = -1;
|
||||||
int SubType = 0;
|
int SubType = 0;
|
||||||
int x,y;
|
int x,y;
|
||||||
x=(Pos.x-16.0f)/32.0f;
|
x=(Pos.x-16.0f)/32.0f;
|
||||||
y=(Pos.y-16.0f)/32.0f;
|
y=(Pos.y-16.0f)/32.0f;
|
||||||
dbg_msg("OnEntity","Pos %d %d, x%d y%d",temp1,temp2,x,y);//Remove*/
|
|
||||||
/*dbg_msg("OnEntity","Pos(%d,%d)",x,y);//Remove*/
|
|
||||||
int sides[8];
|
int sides[8];
|
||||||
sides[0]=GameServer()->Collision()->Entity(x,y+1, Front);
|
sides[0]=GameServer()->Collision()->Entity(x,y+1, Front);
|
||||||
sides[1]=GameServer()->Collision()->Entity(x+1,y+1, Front);
|
sides[1]=GameServer()->Collision()->Entity(x+1,y+1, Front);
|
||||||
|
|
Loading…
Reference in a new issue