update data sln; 4-wide bibs

This commit is contained in:
Chris Forbes
2010-02-06 09:16:08 +13:00
parent 5b702b76cf
commit 848c927a81
4 changed files with 48 additions and 19 deletions

View File

@@ -10,8 +10,7 @@ namespace OpenRa.Traits
public class RenderBuilding : RenderSimple, INotifyDamage, INotifySold
{
const int SmallBibStart = 1;
const int LargeBibStart = 5;
static readonly int[] bibStarts = { 0, 0, 1, 5, 11 };
public RenderBuilding(Actor self)
: base(self)
@@ -38,7 +37,7 @@ namespace OpenRa.Traits
{
var size = buildingInfo.Dimensions.X;
var bibOffset = buildingInfo.Dimensions.Y - 1;
var startIndex = (size == 2) ? SmallBibStart : LargeBibStart;
var startIndex = bibStarts[size];
for (int i = 0; i < 2 * size; i++)
{