Freezes map after game ends.

Adds newline.

Disables keyboard hotkeys for units after game ends.
This commit is contained in:
deniz1a
2015-07-09 13:06:36 +03:00
parent ea3a680eda
commit ef143e5f8a
5 changed files with 19 additions and 12 deletions

View File

@@ -52,12 +52,12 @@ namespace OpenRA
public Player LocalPlayer { get; private set; }
public event Action GameOver = () => { };
bool gameOver;
public bool IsGameOver { get; private set; }
public void EndGame()
{
if (!gameOver)
if (!IsGameOver)
{
gameOver = true;
IsGameOver = true;
foreach (var t in WorldActor.TraitsImplementing<IGameOver>())
t.GameOver(this);