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

@@ -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);