[12069] Cleanup comment style

This commit is contained in:
Schmoozerd 2012-07-22 02:54:31 +02:00
parent 5efb3867f5
commit 835d1c7479
205 changed files with 2835 additions and 2835 deletions

View file

@ -73,10 +73,10 @@ Object::~Object()
if (m_uint32Values)
{
//DEBUG_LOG("Object desctr 1 check (%p)",(void*)this);
// DEBUG_LOG("Object desctr 1 check (%p)",(void*)this);
delete [] m_uint32Values;
delete [] m_uint32Values_mirror;
//DEBUG_LOG("Object desctr 2 check (%p)",(void*)this);
// DEBUG_LOG("Object desctr 2 check (%p)",(void*)this);
}
}
@ -186,7 +186,7 @@ void Object::BuildCreateUpdateBlockForPlayer(UpdateData* data, Player* target) c
}
}
//DEBUG_LOG("BuildCreateUpdate: update-type: %u, object-type: %u got updateFlags: %X", updatetype, m_objectTypeId, updateFlags);
// DEBUG_LOG("BuildCreateUpdate: update-type: %u, object-type: %u got updateFlags: %X", updatetype, m_objectTypeId, updateFlags);
ByteBuffer buf(500);
buf << uint8(updatetype);
@ -246,7 +246,7 @@ void Object::DestroyForPlayer(Player* target, bool anim) const
void Object::BuildMovementUpdate(ByteBuffer* data, uint16 updateFlags) const
{
//uint16 moveFlags2 = (isType(TYPEMASK_UNIT) ? ((Unit*)this)->m_movementInfo.GetMovementFlags2() : MOVEFLAG2_NONE);
// uint16 moveFlags2 = (isType(TYPEMASK_UNIT) ? ((Unit*)this)->m_movementInfo.GetMovementFlags2() : MOVEFLAG2_NONE);
*data << uint16(updateFlags); // update flags
@ -394,7 +394,7 @@ void Object::BuildMovementUpdate(ByteBuffer* data, uint16 updateFlags) const
// 0x2
if (updateFlags & UPDATEFLAG_TRANSPORT)
{
*data << uint32(WorldTimer::getMSTime()); // ms time
*data << uint32(WorldTimer::getMSTime()); // ms time
}
// 0x80
@ -1001,7 +1001,7 @@ InstanceData* WorldObject::GetInstanceData() const
return GetMap()->GetInstanceData();
}
//slow
// slow
float WorldObject::GetDistance(const WorldObject* obj) const
{
float dx = GetPositionX() - obj->GetPositionX();
@ -1199,7 +1199,7 @@ float WorldObject::GetAngle(const WorldObject* obj) const
return 0.0f;
// Rework the assert, when more cases where such a call can happen have been fixed
//MANGOS_ASSERT(obj != this || PrintEntryError("GetAngle (for self)"));
// MANGOS_ASSERT(obj != this || PrintEntryError("GetAngle (for self)"));
if (obj == this)
{
sLog.outError("INVALID CALL for GetAngle for %s", obj->GetGuidStr().c_str());
@ -1495,21 +1495,21 @@ void WorldObject::BuildMonsterChat(WorldPacket* data, ObjectGuid senderGuid, uin
void WorldObject::SendMessageToSet(WorldPacket* data, bool /*bToSelf*/)
{
//if object is in world, map for it already created!
// if object is in world, map for it already created!
if (IsInWorld())
GetMap()->MessageBroadcast(this, data);
}
void WorldObject::SendMessageToSetInRange(WorldPacket* data, float dist, bool /*bToSelf*/)
{
//if object is in world, map for it already created!
// if object is in world, map for it already created!
if (IsInWorld())
GetMap()->MessageDistBroadcast(this, data, dist);
}
void WorldObject::SendMessageToSetExcept(WorldPacket* data, Player const* skipped_receiver)
{
//if object is in world, map for it already created!
// if object is in world, map for it already created!
if (IsInWorld())
{
MaNGOS::MessageDelivererExcept notifier(this, data, skipped_receiver);
@ -1536,7 +1536,7 @@ void WorldObject::SetMap(Map* map)
{
MANGOS_ASSERT(map);
m_currMap = map;
//lets save current map's Id/instanceId
// lets save current map's Id/instanceId
m_mapId = map->GetId();
m_InstanceId = map->GetInstanceId();
}
@ -1732,7 +1732,7 @@ void WorldObject::GetNearPoint(WorldObject const* searcher, float& x, float& y,
float angle; // candidate of angle for free pos
// select in positions after current nodes (selection one by one)
while (selector.NextAngle(angle)) // angle for free pos
while (selector.NextAngle(angle)) // angle for free pos
{
GetNearPoint2D(x, y, distance2d + searcher_bounding_radius, absAngle + angle);
z = GetPositionZ();