obey force move commands on bridge demolition and repair

This commit is contained in:
Matthias Mailänder
2013-12-26 15:48:05 +01:00
parent 83915eefb4
commit ed19969afe
2 changed files with 33 additions and 1 deletions

View File

@@ -79,6 +79,10 @@ namespace OpenRA.Mods.RA
if (!modifiers.HasModifier(TargetModifiers.ForceAttack) && damage != DamageState.Dead)
return false;
// Obey force moving onto bridges
if (modifiers.HasModifier(TargetModifiers.ForceMove))
return false;
// Can't repair an undamaged bridge
if (damage == DamageState.Undamaged)
cursor = "goldwrench-blocked";