smite some more compile warnings (amended to add minimap changes)

This commit is contained in:
alzeih
2010-07-11 19:09:11 +12:00
committed by Paul Chote
parent 7d18937415
commit dc1e36f653
10 changed files with 6 additions and 24 deletions

View File

@@ -126,7 +126,6 @@ namespace MapConverter
{Pair.New("cnc","WINTER"),Pair.New("win","winter.col")},
};
TileSet tileset;
public void ConvertIniMap(string iniFile)
{
IniFile file = new IniFile(FileSystem.Open(iniFile));

View File

@@ -56,7 +56,6 @@ namespace OpenRA.Editor
}
string loadedMapName;
string colors;
string currentMod = "ra";
TileSet tileset;

View File

@@ -176,7 +176,6 @@ namespace OpenRA
{
if (IsDead) return; /* overkill! don't count extra hits as more kills! */
var rawDamage = damage;
var oldState = GetDamageState();
/* apply the damage modifiers, if we have any. */

View File

@@ -36,8 +36,6 @@ namespace OpenRA
SpriteRenderer rgbaRenderer { get { return renderer.RgbaSpriteRenderer; } }
SpriteRenderer shpRenderer { get { return renderer.WorldSpriteRenderer; } }
internal MapStub currentMap;
public Chrome(Renderer r, Manifest m)
{
this.renderer = r;

View File

@@ -154,7 +154,7 @@ namespace OpenRA
world = new World(manifest, map);
Timer.Time("world: {0}");
SequenceProvider.Initialize(manifest.Sequences, map.Theater);
SequenceProvider.Initialize(manifest.Sequences);
Timer.Time("ChromeProv, SeqProv: {0}");
chrome = new Chrome(renderer, manifest);

View File

@@ -32,13 +32,9 @@ namespace OpenRA.Graphics
readonly World world;
Sheet sheet;
SpriteRenderer rgbaRenderer;
LineRenderer lineRenderer;
Sprite sprite;
Bitmap terrain, customLayer;
Rectangle bounds;
Sprite ownedSpawnPoint;
Sprite unownedSpawnPoint;
const int alpha = 230;
@@ -46,8 +42,6 @@ namespace OpenRA.Graphics
{
this.world = world;
sheet = new Sheet(r, new Size(world.Map.MapSize.X, world.Map.MapSize.Y));
lineRenderer = new LineRenderer(r);
rgbaRenderer = r.RgbaSpriteRenderer;
var size = Math.Max(world.Map.Width, world.Map.Height);
var dw = (size - world.Map.Width) / 2;
@@ -58,9 +52,6 @@ namespace OpenRA.Graphics
sprite = new Sprite(sheet, bounds, TextureChannel.Alpha);
shroudColor = Color.FromArgb(alpha, Color.Black);
ownedSpawnPoint = ChromeProvider.GetImage(r, "spawnpoints", "owned");
unownedSpawnPoint = ChromeProvider.GetImage(r, "spawnpoints", "unowned");
}
public static Rectangle MakeMinimapBounds(Map m)

View File

@@ -31,13 +31,11 @@ namespace OpenRA.Graphics
{
static Dictionary<string, Dictionary<string, Sequence>> units;
static Dictionary<string, CursorSequence> cursors;
static string currentTheater;
public static void Initialize(string[] sequenceFiles, string theater)
public static void Initialize(string[] sequenceFiles)
{
units = new Dictionary<string, Dictionary<string, Sequence>>();
cursors = new Dictionary<string, CursorSequence>();
currentTheater = theater;
foreach (var f in sequenceFiles)
LoadSequenceSource(f);

View File

@@ -33,13 +33,12 @@ namespace OpenRA.Mods.RA
class RepairButtonInfo : ITraitInfo
{
public readonly bool RequiresConstructionYard = true;
public object Create(ActorInitializer init) { return new RepairButton(this); }
public object Create(ActorInitializer init) { return new RepairButton(); }
}
class RepairButton : IChromeButton
{
RepairButtonInfo info;
public RepairButton( RepairButtonInfo info ) { this.info = info; }
public RepairButton() { }
public string Image { get { return "repair"; } }
public bool Enabled

View File

@@ -49,7 +49,7 @@ namespace OpenRA.Mods.RA
//if (!underCursor.Info.Traits.Get<CargoInfo>().PassengerTypes.Contains(umt))
return null;
return new Order("EnterTransport", self, underCursor);
//return new Order("EnterTransport", self, underCursor);
}
public string CursorForOrderString(string s, Actor a, int2 location)

View File

@@ -17,8 +17,7 @@ namespace OpenRA.Mods.RA
.Select(id => self.World.Actors.FirstOrDefault(a => a.ActorID == id))
.Where(a => a != null);
var g = new Group(actors);
// g.Dump();
new Group(actors);
}
}
}