1
0

Removed a few debugging messages from the release builds.

( http://forum.mc-server.org/showthread.php?tid=571 )

git-svn-id: http://mc-server.googlecode.com/svn/trunk@936 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-10-06 19:00:03 +00:00
parent f5c3cba6ff
commit 770486d2e1
4 changed files with 11 additions and 8 deletions

View File

@ -132,6 +132,7 @@ inline void AddDirection( int & a_X, int & a_Y, int & a_Z, char a_Direction, boo
default:
{
LOGWARNING("AddDirection(): Unknown direction: %d", a_Direction);
ASSERT(!"AddDirection(): Unknown direction");
break;
}
}
@ -149,6 +150,7 @@ inline void AddDirection( int & a_X, int & a_Y, int & a_Z, char a_Direction, boo
default:
{
LOGWARNING("AddDirection(): Unknown inv direction: %d", a_Direction);
ASSERT(!"AddDirection(): Unknown direction");
break;
}
}

View File

@ -50,7 +50,7 @@ cEntity::cEntity(const double & a_X, const double & a_Y, const double & a_Z)
cEntity::~cEntity()
{
LOG("Deleting entity %d at pos {%.2f, %.2f} ~ [%d, %d]; ptr %p",
LOGD("Deleting entity %d at pos {%.2f, %.2f} ~ [%d, %d]; ptr %p",
m_UniqueID,
m_Pos.x, m_Pos.z,
(int)(m_Pos.x / cChunkDef::Width), (int)(m_Pos.z / cChunkDef::Width),

View File

@ -73,11 +73,11 @@ bool cInventory::AddItem( cItem & a_Item )
return false;
}
for(unsigned int i = 0; i < c_NumSlots; i++)
for (unsigned int i = 0; i < c_NumSlots; i++)
{
if( ChangedSlots[i] )
if (ChangedSlots[i])
{
LOG("Item was added to %i ID:%i Count:%i", i, m_Slots[i].m_ItemID, m_Slots[i].m_ItemCount );
LOGD("cInventory::AddItem(): Item was added to %i ID:%i Count:%i", i, m_Slots[i].m_ItemID, m_Slots[i].m_ItemCount);
SendSlot(i);
}
}

View File

@ -47,8 +47,8 @@ cMonster::cMonster()
, m_AttackRate(3)
, idle_interval(0)
{
LOG("cMonster::cMonster()");
LOG("In state: %s", GetState());
LOGD("cMonster::cMonster()");
LOGD("In state: %s", GetState());
m_bBurnable = true;
m_MetaData = NORMAL;
@ -60,7 +60,7 @@ cMonster::cMonster()
cMonster::~cMonster()
{
LOG("cMonster::~cMonster()");
LOGD("cMonster::~cMonster()");
}
@ -373,7 +373,8 @@ void cMonster::SetState(const AString & a_State)
}
else
{
printf("Invalid State");
LOGD("cMonster::SetState(): Invalid state");
ASSERT(!"Invalid state");
}
}