Added callback in Passenger during unload from cargo just before the actor is added back to the world
This commit is contained in:
@@ -119,11 +119,12 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
var move = actor.Trait<IMove>();
|
||||
var pos = actor.Trait<IPositionable>();
|
||||
var passenger = actor.Trait<Passenger>();
|
||||
|
||||
pos.SetPosition(actor, exitSubCell.Value.Cell, exitSubCell.Value.SubCell);
|
||||
pos.SetCenterPosition(actor, spawn);
|
||||
|
||||
actor.CancelActivity();
|
||||
passenger.OnBeforeAddedToWorld(actor);
|
||||
w.Add(actor);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user