# HG changeset patch
# User sheepluva
# Date 1444493906 -7200
# Node ID 3ff617fccc678a631be7db0dcf71c30ab994b1bd
# Parent  2f4d0a387a02d121d8a928660e89cf502b3c697f
Lua-API: onSuddenDeath hook

diff -r 2f4d0a387a02 -r 3ff617fccc67 hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Thu Oct 08 10:48:16 2015 -0400
+++ b/hedgewars/uGears.pas	Sat Oct 10 18:18:26 2015 +0200
@@ -320,6 +320,7 @@
                     Ammoz[amTardis].Probability:= 0;
                     end;
                 AddCaption(trmsg[sidSuddenDeath], cWhiteColor, capgrpGameState);
+                ScriptCall('onSuddenDeath');
                 playSound(sndSuddenDeath);
                 StopMusic;
                 if SDMusicFN <> '' then PlayMusic