Rename "Created" to "Initialize" and let it handle adding to the world
This commit is contained in:
@@ -337,10 +337,7 @@ namespace OpenRA
|
||||
public Actor CreateActor(bool addToWorld, string name, TypeDictionary initDict)
|
||||
{
|
||||
var a = new Actor(this, name, initDict);
|
||||
a.Created();
|
||||
if (addToWorld)
|
||||
Add(a);
|
||||
|
||||
a.Initialize(addToWorld);
|
||||
return a;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user