Port EnterTransport to the new Enter activity.

This dramatically simplifies the reservation logic,
which seemed to be needlessly complicated. This may
regress unexpected edge-cases.
This commit is contained in:
Paul Chote
2019-02-01 23:08:04 +00:00
committed by Oliver Brakmann
parent d6b7d5c4c7
commit 71dd3202c3
3 changed files with 107 additions and 41 deletions

View File

@@ -60,7 +60,7 @@ namespace OpenRA.Mods.Common.Scripting
[Desc("Move to and enter the transport.")]
public void EnterTransport(Actor transport)
{
Self.QueueActivity(new EnterTransport(Self, transport, 1, false));
Self.QueueActivity(new EnterTransport(Self, Target.FromActor(transport)));
}
[Desc("Whether the actor can move (false if immobilized).")]