fixes #323
This commit is contained in:
committed by
Chris Forbes
parent
de92a2fc0c
commit
f6df7a06f2
@@ -196,7 +196,8 @@ namespace OpenRA.Mods.Cnc
|
||||
{
|
||||
var b = cargo.Unload(a);
|
||||
world.AddFrameEndTask(w2 =>
|
||||
{
|
||||
{
|
||||
if (b.Destroyed) return;
|
||||
w2.Add(b);
|
||||
b.TraitsImplementing<IMove>().FirstOrDefault().SetPosition(b, a.Location);
|
||||
b.QueueActivity(new Move(unload, 2));
|
||||
|
||||
@@ -56,7 +56,8 @@ namespace OpenRA.Mods.Cnc
|
||||
harv.QueueActivity( new Move(harvester.LastHarvestedCell, 5) );
|
||||
if (harv.Owner == self.World.LocalPlayer)
|
||||
self.World.AddFrameEndTask( w =>
|
||||
{
|
||||
{
|
||||
if (harv.Destroyed) return;
|
||||
var line = harv.TraitOrDefault<DrawLineToTarget>();
|
||||
if (line != null)
|
||||
line.SetTargetSilently(harv, Target.FromCell(harvester.LastHarvestedCell), Color.Green);
|
||||
|
||||
Reference in New Issue
Block a user