Prevent crash dialog from popping up when the game restarts

Fixes #6887
This commit is contained in:
Oliver Brakmann
2014-11-04 21:29:16 +01:00
parent e6bf1cafd3
commit 64506b856a
5 changed files with 7 additions and 7 deletions

View File

@@ -105,7 +105,7 @@ namespace OpenRA
static void GameProcessExited(object sender, EventArgs e)
{
if (gameProcess.ExitCode != 0)
if (!(gameProcess.ExitCode == (int)RunStatus.Success || gameProcess.ExitCode == (int)RunStatus.Restart))
ShowErrorDialog();
Exit();