Game.usingAftermath dead
This commit is contained in:
@@ -41,7 +41,6 @@ namespace OpenRa
|
|||||||
public static bool skipMakeAnims = true;
|
public static bool skipMakeAnims = true;
|
||||||
|
|
||||||
internal static Renderer renderer;
|
internal static Renderer renderer;
|
||||||
static bool usingAftermath;
|
|
||||||
static int2 clientSize;
|
static int2 clientSize;
|
||||||
static HardwarePalette palette;
|
static HardwarePalette palette;
|
||||||
static string mapName;
|
static string mapName;
|
||||||
@@ -94,11 +93,9 @@ namespace OpenRa
|
|||||||
chrome = new Chrome(renderer);
|
chrome = new Chrome(renderer);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static void Initialize(string mapName, Renderer renderer, int2 clientSize,
|
internal static void Initialize(string mapName, Renderer renderer, int2 clientSize, int localPlayer, Controller controller)
|
||||||
int localPlayer, bool useAftermath, Controller controller)
|
|
||||||
{
|
{
|
||||||
localPlayerIndex = localPlayer;
|
localPlayerIndex = localPlayer;
|
||||||
usingAftermath = useAftermath;
|
|
||||||
Game.renderer = renderer;
|
Game.renderer = renderer;
|
||||||
Game.clientSize = clientSize;
|
Game.clientSize = clientSize;
|
||||||
|
|
||||||
|
|||||||
@@ -62,8 +62,7 @@ namespace OpenRa
|
|||||||
|
|
||||||
var controller = new Controller(() => (Modifiers)(int)ModifierKeys); /* a bit of insane input routing */
|
var controller = new Controller(() => (Modifiers)(int)ModifierKeys); /* a bit of insane input routing */
|
||||||
|
|
||||||
Game.Initialize(Game.Settings.Map, renderer, new int2(ClientSize),
|
Game.Initialize(Game.Settings.Map, renderer, new int2(ClientSize), Game.Settings.Player, controller);
|
||||||
Game.Settings.Player, Game.Settings.UseAftermath, controller);
|
|
||||||
|
|
||||||
ShowCursor(false);
|
ShowCursor(false);
|
||||||
Game.ResetTimer();
|
Game.ResetTimer();
|
||||||
|
|||||||
Reference in New Issue
Block a user