fix engineer/bridge interaction

This commit is contained in:
Chris Forbes
2010-01-19 14:06:32 +13:00
parent fb6a8a2cdd
commit 8b1ad57225

View File

@@ -17,6 +17,7 @@ namespace OpenRa.Mods.RA
if (!underCursor.traits.Contains<Building>()) return null;
// todo: other bits
if (underCursor.Owner == null) return null; // don't allow capturing of bridges, etc.
return new Order(underCursor.Health <= EngineerDamage ? "Capture" : "Infiltrate",
self, underCursor, int2.Zero, null);