--- a/hedgewars/uScript.pas Tue Mar 30 23:03:51 2010 +0000
+++ b/hedgewars/uScript.pas Tue Mar 30 23:13:12 2010 +0000
@@ -556,6 +556,7 @@
ScriptSetInteger('LandAdds', cLandAdditions);
ScriptSetInteger('Explosives', cExplosives);
ScriptSetInteger('Delay', cInactDelay);
+ScriptSetInteger('SuddenDeathTurns', cSuddenDTurns);
ScriptSetString('Map', '');
ScriptSetString('Theme', '');
@@ -574,6 +575,7 @@
ParseCommand('$landadds ' + ScriptGetString('LandAdds'), true);
ParseCommand('$explosives ' + ScriptGetString('Explosives'), true);
ParseCommand('$delay ' + ScriptGetString('Delay'), true);
+ParseCommand('$sd_turns ' + ScriptGetString('SuddenDeathTurns'), true);
if ScriptGetString('Map') <> '' then
ParseCommand('map ' + ScriptGetString('Map'), true);
if ScriptGetString('Theme') <> '' then
--- a/share/hedgewars/Data/Maps/Basketball/map.lua Tue Mar 30 23:03:51 2010 +0000
+++ b/share/hedgewars/Data/Maps/Basketball/map.lua Tue Mar 30 23:13:12 2010 +0000
@@ -65,6 +65,7 @@
LandAdds = 0
Explosives = 0
Delay = 500
+ SuddenDeathTurns = 99999 -- "disable" sudden death
end
function onGameStart()
--- a/share/hedgewars/Data/Maps/Knockball/map.lua Tue Mar 30 23:03:51 2010 +0000
+++ b/share/hedgewars/Data/Maps/Knockball/map.lua Tue Mar 30 23:13:12 2010 +0000
@@ -50,6 +50,7 @@
LandAdds = 0
Explosives = 0
Delay = 500
+ SuddenDeathTurns = 99999 -- "disable" sudden death
end
function onGameStart()