Set GameOver to true in EndGame (Lua)
authorWuzzy <Wuzzy2@mail.ru>
Mon, 13 May 2019 20:26:07 +0200
changeset 14927 9d6a25239d00
parent 14926 60340c8a6fae
child 14928 4c5fb1ee75b7
Set GameOver to true in EndGame (Lua)
hedgewars/uScript.pas
--- a/hedgewars/uScript.pas	Mon May 13 20:25:32 2019 +0200
+++ b/hedgewars/uScript.pas	Mon May 13 20:26:07 2019 +0200
@@ -2037,6 +2037,7 @@
 function lc_endgame(L : Plua_State) : LongInt; Cdecl;
 begin
     L:= L; // avoid compiler hint
+    GameOver:= true;
     AddGear(0, 0, gtATFinishGame, 0, _0, _0, 3000);
     lc_endgame:= 0
 end;