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:
committed by
Oliver Brakmann
parent
d6b7d5c4c7
commit
71dd3202c3
@@ -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).")]
|
||||
|
||||
Reference in New Issue
Block a user