Reimplement Bibs

This commit is contained in:
Paul Chote
2010-04-02 19:43:22 +13:00
committed by Bob
parent 25c95982d7
commit fd5539d110
13 changed files with 148 additions and 67 deletions

View File

@@ -152,8 +152,10 @@ namespace OpenRA
public static bool IsCloseEnoughToBase(this World world, Player p, string buildingName, BuildingInfo bi, int2 topLeft)
{
var buildingMaxBounds = bi.Dimensions;
if( bi.Bib )
if( Rules.Info[ buildingName ].Traits.Contains<BibInfo>() )
buildingMaxBounds.Y += 1;
var scanStart = world.ClampToWorld( topLeft - new int2( bi.Adjacent, bi.Adjacent ) );