Revert "Fix crushables and crates causing HPF to crash."
This reverts commit 5765e51c56.
This commit is contained in:
@@ -120,11 +120,8 @@ namespace OpenRA.Mods.Common.Activities
|
||||
var move = actor.Trait<IMove>();
|
||||
var pos = actor.Trait<IPositionable>();
|
||||
|
||||
// HACK: Call SetCenterPosition before SetPosition
|
||||
// So when SetPosition calls ActorMap.CellUpdated
|
||||
// the listeners see the new CenterPosition.
|
||||
pos.SetCenterPosition(actor, spawn);
|
||||
pos.SetPosition(actor, exitSubCell.Value.Cell, exitSubCell.Value.SubCell);
|
||||
pos.SetCenterPosition(actor, spawn);
|
||||
|
||||
actor.CancelActivity();
|
||||
w.Add(actor);
|
||||
|
||||
Reference in New Issue
Block a user