Freezes map after game ends.
Adds newline. Disables keyboard hotkeys for units after game ends.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user