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

@@ -16,7 +16,7 @@ namespace OpenRa.Graphics
static string[] smudgeSpriteNames =
{
"bib3", "bib2", "sc1", "sc2", "sc3", "sc4", "sc5", "sc6",
"bib3", "bib2", "bib1", "sc1", "sc2", "sc3", "sc4", "sc5", "sc6",
"cr1", "cr2", "cr3", "cr4", "cr5", "cr6",
};

View File

@@ -5,8 +5,8 @@ namespace OpenRa
{
static class Smudge
{
const int firstScorch = 11;
const int firstCrater = 17;
const int firstScorch = 19;
const int firstCrater = 25;
const int framesPerCrater = 5;
public static void AddSmudge(this Map map, bool isCrater, int x, int y)

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++)
{