1
0

Moved entity spawning into cEntity::Initialize().

It has been called in every descendant anyway, so it's better this way - reduced duplicate code.
This commit is contained in:
madmaxoft
2013-08-25 21:25:13 +02:00
parent 83811b6929
commit a7447b4c7e
9 changed files with 4 additions and 61 deletions

View File

@@ -22,20 +22,6 @@ cFallingBlock::cFallingBlock(const Vector3i & a_BlockPosition, BLOCKTYPE a_Block
bool cFallingBlock::Initialize(cWorld * a_World)
{
if (super::Initialize(a_World))
{
a_World->BroadcastSpawnEntity(*this);
return true;
}
return false;
}
void cFallingBlock::SpawnOn(cClientHandle & a_ClientHandle)
{
a_ClientHandle.SendSpawnFallingBlock(*this);