git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1345 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -37,7 +37,7 @@ namespace OpenRa.Game
|
|||||||
Location = Point.Empty;
|
Location = Point.Empty;
|
||||||
Visible = true;
|
Visible = true;
|
||||||
|
|
||||||
bool windowed = !settings.GetValue("fullscreeen", false);
|
bool windowed = !settings.GetValue("fullscreen", false);
|
||||||
renderer = new Renderer(this, GetResolution(settings), windowed);
|
renderer = new Renderer(this, GetResolution(settings), windowed);
|
||||||
SheetBuilder.Initialize( renderer );
|
SheetBuilder.Initialize( renderer );
|
||||||
|
|
||||||
|
|||||||
@@ -40,10 +40,10 @@ namespace OpenRa.Game
|
|||||||
for (int i = 0; i < width; i++)
|
for (int i = 0; i < width; i++)
|
||||||
for (int j = 0; j < height; j++)
|
for (int j = 0; j < height; j++)
|
||||||
spriteRenderer.DrawSprite(blocked ? buildBlocked : buildOk,
|
spriteRenderer.DrawSprite(blocked ? buildBlocked : buildOk,
|
||||||
24 * (position + new int2(i, j)), 0);
|
24 * (position + new int2(i, j)) + game.viewport.Location, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool hasOverlay = false, blocked;
|
bool blocked, hasOverlay;
|
||||||
int2 position;
|
int2 position;
|
||||||
int width, height;
|
int width, height;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user