*use ASSERT macro instead of regular assert for better output.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-07-30 20:04:28 +02:00
parent 3dc29732b7
commit 48b360097c
50 changed files with 261 additions and 261 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ Cell::Visit(const CellPair& standing_cell, TypeContainerVisitor<T, CONTAINER> &v
}
default:
{
assert(false);
ASSERT(false);
break;
}
}
+4 -4
View File
@@ -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
+1 -1
View File
@@ -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();