hedgewars/uScript.pas
changeset 8460 75e771c3c039
parent 8370 0c79946e96f8
child 8473 555235e90010
--- a/hedgewars/uScript.pas	Tue Jan 29 17:28:47 2013 +0400
+++ b/hedgewars/uScript.pas	Tue Jan 29 13:45:31 2013 -0500
@@ -1281,7 +1281,7 @@
 function lc_endgame(L : Plua_State) : LongInt; Cdecl;
 begin
     L:= L; // avoid compiler hint
-    GameState:= gsExit;
+    AddGear(0, 0, gtATFinishGame, 0, _0, _0, 3000);
     lc_endgame:= 0
 end;