End the mission when a script error occurs.

This commit is contained in:
Paul Chote
2014-10-18 12:37:28 +13:00
parent d79ecb432a
commit 79492a3240
11 changed files with 76 additions and 2 deletions

View File

@@ -193,6 +193,13 @@ namespace OpenRA.Scripting
Log.Write("lua", stacktrace);
FatalErrorOccurred = true;
World.AddFrameEndTask(w =>
{
World.EndGame();
World.SetPauseState(true);
World.PauseStateLocked = true;
});
}
public void RegisterMapActor(string name, Actor a)