Core: Continued cleanup
If and for whitespaces.
This commit is contained in:
@@ -58,7 +58,7 @@ class Grid
|
||||
*/
|
||||
template<class SPECIFIC_OBJECT> void AddWorldObject(SPECIFIC_OBJECT *obj)
|
||||
{
|
||||
if(!i_objects.template insert<SPECIFIC_OBJECT>(obj))
|
||||
if (!i_objects.template insert<SPECIFIC_OBJECT>(obj))
|
||||
ASSERT(false);
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ class Grid
|
||||
*/
|
||||
template<class SPECIFIC_OBJECT> void RemoveWorldObject(SPECIFIC_OBJECT *obj)
|
||||
{
|
||||
if(!i_objects.template remove<SPECIFIC_OBJECT>(obj))
|
||||
if (!i_objects.template remove<SPECIFIC_OBJECT>(obj))
|
||||
ASSERT(false);
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ class Grid
|
||||
*/
|
||||
template<class SPECIFIC_OBJECT> void AddGridObject(SPECIFIC_OBJECT *obj)
|
||||
{
|
||||
if(!i_container.template insert<SPECIFIC_OBJECT>(obj))
|
||||
if (!i_container.template insert<SPECIFIC_OBJECT>(obj))
|
||||
ASSERT(false);
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ class Grid
|
||||
*/
|
||||
template<class SPECIFIC_OBJECT> void RemoveGridObject(SPECIFIC_OBJECT *obj)
|
||||
{
|
||||
if(!i_container.template remove<SPECIFIC_OBJECT>(obj))
|
||||
if (!i_container.template remove<SPECIFIC_OBJECT>(obj))
|
||||
ASSERT(false);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ class GridReference : public Reference<GridRefManager<OBJECT>, OBJECT>
|
||||
void targetObjectDestroyLink()
|
||||
{
|
||||
// called from unlink()
|
||||
if(this->isValid()) this->getTarget()->decSize();
|
||||
if (this->isValid()) this->getTarget()->decSize();
|
||||
}
|
||||
void sourceObjectDestroyLink()
|
||||
{
|
||||
|
||||
@@ -40,10 +40,10 @@ public:
|
||||
i_unloadActiveLockCount(0), i_unloadExplicitLock(!unload), i_unloadReferenceLock(false) {}
|
||||
const TimeTracker& getTimeTracker() const { return i_timer; }
|
||||
bool getUnloadLock() const { return i_unloadActiveLockCount || i_unloadExplicitLock || i_unloadReferenceLock; }
|
||||
void setUnloadExplicitLock( bool on ) { i_unloadExplicitLock = on; }
|
||||
void setUnloadReferenceLock( bool on ) { i_unloadReferenceLock = on; }
|
||||
void setUnloadExplicitLock(bool on) { i_unloadExplicitLock = on; }
|
||||
void setUnloadReferenceLock(bool on) { i_unloadReferenceLock = on; }
|
||||
void incUnloadActiveLock() { ++i_unloadActiveLockCount; }
|
||||
void decUnloadActiveLock() { if(i_unloadActiveLockCount) --i_unloadActiveLockCount; }
|
||||
void decUnloadActiveLock() { if (i_unloadActiveLockCount) --i_unloadActiveLockCount; }
|
||||
|
||||
void setTimer(const TimeTracker& pTimer) { i_timer = pTimer; }
|
||||
void ResetTimeTracker(time_t interval) { i_timer.Reset(interval); }
|
||||
@@ -116,8 +116,8 @@ class NGrid
|
||||
GridInfo* getGridInfoRef() { return &i_GridInfo; }
|
||||
const TimeTracker& getTimeTracker() const { return i_GridInfo.getTimeTracker(); }
|
||||
bool getUnloadLock() const { return i_GridInfo.getUnloadLock(); }
|
||||
void setUnloadExplicitLock( bool on ) { i_GridInfo.setUnloadExplicitLock(on); }
|
||||
void setUnloadReferenceLock( bool on ) { i_GridInfo.setUnloadReferenceLock(on); }
|
||||
void setUnloadExplicitLock(bool on) { i_GridInfo.setUnloadExplicitLock(on); }
|
||||
void setUnloadReferenceLock(bool on) { i_GridInfo.setUnloadReferenceLock(on); }
|
||||
void incUnloadActiveLock() { i_GridInfo.incUnloadActiveLock(); }
|
||||
void decUnloadActiveLock() { i_GridInfo.decUnloadActiveLock(); }
|
||||
void ResetTimeTracker(time_t interval) { i_GridInfo.ResetTimeTracker(interval); }
|
||||
|
||||
Reference in New Issue
Block a user