fixed #2198 - crates are collected when landing on top of a unit

This commit is contained in:
Chris Forbes
2012-07-01 09:04:49 +12:00
parent b9365a149f
commit 9201b1cced
3 changed files with 15 additions and 1 deletions

View File

@@ -67,6 +67,9 @@ namespace OpenRA.Mods.RA.Effects
cargo.CancelActivity();
cargo.Trait<ITeleportable>().SetPosition(cargo, loc);
w.Add(cargo);
foreach( var npl in cargo.TraitsImplementing<INotifyParachuteLanded>() )
npl.OnLanded();
});
}