Fix cnc AFLD
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -34,8 +34,7 @@ namespace OpenRA.Traits
|
||||
|
||||
foreach (var a in self.World.Actors)
|
||||
{
|
||||
if (a.Location.X >= self.World.Map.MapSize
|
||||
|| a.Location.Y >= self.World.Map.MapSize)
|
||||
if (!self.World.Map.IsInMap(a.Location))
|
||||
continue;
|
||||
|
||||
var bounds = a.GetBounds(true);
|
||||
|
||||
@@ -48,6 +48,7 @@ namespace OpenRA.Mods.Cnc
|
||||
{
|
||||
var a = w.CreateActor("C17", startPos, owner);
|
||||
var cargo = a.traits.Get<Cargo>();
|
||||
a.traits.Get<Unit>().Facing = 64;
|
||||
|
||||
var newUnit = new Actor(self.World, producee.Name, new int2(0, 0), self.Owner);
|
||||
cargo.Load(a, newUnit);
|
||||
|
||||
Reference in New Issue
Block a user