*use ASSERT macro instead of regular assert for better output.
--HG-- branch : trunk
This commit is contained in:
@@ -112,7 +112,7 @@ Cell::Visit(const CellPair& standing_cell, TypeContainerVisitor<T, CONTAINER> &v
|
||||
}
|
||||
default:
|
||||
{
|
||||
assert(false);
|
||||
ASSERT(false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ class Grid
|
||||
template<class SPECIFIC_OBJECT> void AddWorldObject(SPECIFIC_OBJECT *obj)
|
||||
{
|
||||
if(!i_objects.template insert<SPECIFIC_OBJECT>(obj))
|
||||
assert(false);
|
||||
ASSERT(false);
|
||||
}
|
||||
|
||||
/** an object of interested exits the grid
|
||||
@@ -69,7 +69,7 @@ class Grid
|
||||
template<class SPECIFIC_OBJECT> void RemoveWorldObject(SPECIFIC_OBJECT *obj)
|
||||
{
|
||||
if(!i_objects.template remove<SPECIFIC_OBJECT>(obj))
|
||||
assert(false);
|
||||
ASSERT(false);
|
||||
}
|
||||
|
||||
/** Refreshes/update the grid. This required for remote grids.
|
||||
@@ -107,7 +107,7 @@ class Grid
|
||||
template<class SPECIFIC_OBJECT> void AddGridObject(SPECIFIC_OBJECT *obj)
|
||||
{
|
||||
if(!i_container.template insert<SPECIFIC_OBJECT>(obj))
|
||||
assert(false);
|
||||
ASSERT(false);
|
||||
}
|
||||
|
||||
/** Removes a containter type object from the grid
|
||||
@@ -115,7 +115,7 @@ class Grid
|
||||
template<class SPECIFIC_OBJECT> void RemoveGridObject(SPECIFIC_OBJECT *obj)
|
||||
{
|
||||
if(!i_container.template remove<SPECIFIC_OBJECT>(obj))
|
||||
assert(false);
|
||||
ASSERT(false);
|
||||
}
|
||||
|
||||
/*bool NoWorldObjectInGrid() const
|
||||
|
||||
@@ -59,7 +59,7 @@ ObjectGridRespawnMover::Visit(CreatureMapType &m)
|
||||
Creature * c = iter->getSource();
|
||||
++iter;
|
||||
|
||||
assert(!c->isPet() && "ObjectGridRespawnMover don't must be called for pets");
|
||||
ASSERT(!c->isPet() && "ObjectGridRespawnMover don't must be called for pets");
|
||||
|
||||
Cell const& cur_cell = c->GetCurrentCell();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user