moved NeutralPlayer creation a bit earlier; bridge sections are now owned by NeutralPlayer rather than null

This commit is contained in:
Chris Forbes
2010-03-27 09:41:49 +13:00
parent 2829b0229b
commit 9c0c1e7827
3 changed files with 5 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ namespace OpenRA.Traits
if (replacedTiles.Any())
{
var a = w.CreateActor(template.Bridge, new int2(ni, nj), null);
var a = w.CreateActor(template.Bridge, new int2(ni, nj), w.NeutralPlayer);
var br = a.traits.Get<Bridge>();
br.SetTiles(w, template, replacedTiles);
}