fix glitchy vis on exiting a transport
This commit is contained in:
@@ -67,10 +67,11 @@ namespace OpenRA.Mods.RA.Activities
|
|||||||
self.World.AddFrameEndTask(w =>
|
self.World.AddFrameEndTask(w =>
|
||||||
{
|
{
|
||||||
if (actor.Destroyed) return;
|
if (actor.Destroyed) return;
|
||||||
w.Add(actor);
|
|
||||||
|
|
||||||
var mobile = actor.Trait<Mobile>();
|
var mobile = actor.Trait<Mobile>();
|
||||||
mobile.SetPosition(actor, self.Location);
|
mobile.SetPosition(actor, self.Location);
|
||||||
|
|
||||||
|
w.Add(actor);
|
||||||
actor.CancelActivity();
|
actor.CancelActivity();
|
||||||
actor.QueueActivity(mobile.MoveTo(exitTile.Value, 0));
|
actor.QueueActivity(mobile.MoveTo(exitTile.Value, 0));
|
||||||
actor.SetTargetLine(Target.FromCell(exitTile.Value), Color.Green, false);
|
actor.SetTargetLine(Target.FromCell(exitTile.Value), Color.Green, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user