1
0

Added queue for adding entities to cWorld.

This alone doesn't work properly yet, further changes to cPlayer are needed.
This commit is contained in:
Mattes D
2014-06-06 22:31:16 +02:00
parent c5d1ca7dac
commit b904223b9d
6 changed files with 42 additions and 7 deletions

View File

@@ -421,6 +421,9 @@ public:
UNUSED(a_Killer);
}
/** Sets the internal world pointer to a new cWorld, doesn't update anything else. */
void SetWorld(cWorld * a_World) { m_World = a_World; }
protected:
static cCriticalSection m_CSCount;
static int m_EntityCount;
@@ -485,8 +488,6 @@ protected:
virtual void Destroyed(void) {} // Called after the entity has been destroyed
void SetWorld(cWorld * a_World) { m_World = a_World; }
/** Called in each tick to handle air-related processing i.e. drowning */
virtual void HandleAir();