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

@@ -144,6 +144,10 @@ bool cEntity::Initialize(cWorld * a_World)
m_World->AddEntity(this);
cPluginManager::Get()->CallHookSpawnedEntity(*a_World, *this);
// Spawn the entity on the clients:
a_World->BroadcastSpawnEntity(*this);
return true;
}