From 4d6370d890a04aa6e23f2151ba779271205d2f51 Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Mon, 18 Oct 2010 13:27:18 +0200 Subject: [PATCH] fixed last commit, removed debug messages --- src/engine/server/server.cpp | 2 +- src/game/gamecore.cpp | 21 --------------------- src/game/server/gamecontroller.cpp | 3 --- 3 files changed, 1 insertion(+), 25 deletions(-) diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index 26742d3a1..9aa04f5e4 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -1762,6 +1762,6 @@ void CServer::CheckPass(int ClientId, const char *pPw) SetRconLevel(ClientId,0); str_format(buf,sizeof(buf),buf,ClientId,0); 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); } } diff --git a/src/game/gamecore.cpp b/src/game/gamecore.cpp index a849d1267..2adf56201 100644 --- a/src/game/gamecore.cpp +++ b/src/game/gamecore.cpp @@ -239,27 +239,6 @@ void CCharacterCore::Tick(bool UseInput) if(m_pWorld && m_pWorld->m_Tuning.m_PlayerHooking) { 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++) { CCharacterCore *p = m_pWorld->m_apCharacters[i]; diff --git a/src/game/server/gamecontroller.cpp b/src/game/server/gamecontroller.cpp index bb915766a..7e62bf8d2 100644 --- a/src/game/server/gamecontroller.cpp +++ b/src/game/server/gamecontroller.cpp @@ -130,14 +130,11 @@ bool IGameController::OnEntity(int Index, vec2 Pos, bool Front) int temp1=Pos.x; int temp2=Pos.y; - dbg_msg("OnEntity","Index=%d Front=%d",Index,Front);//Remove*/ int Type = -1; int SubType = 0; int x,y; x=(Pos.x-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]; sides[0]=GameServer()->Collision()->Entity(x,y+1, Front); sides[1]=GameServer()->Collision()->Entity(x+1,y+1, Front);