Maps:
authorsmxx
Tue, 30 Mar 2010 23:13:12 +0000
changeset 3197 e1fa864fd6ca
parent 3196 336d6fc3325c
child 3198 6947d29c2a24
Maps: * Disable Sudden Death on mission maps
hedgewars/uScript.pas
share/hedgewars/Data/Maps/Basketball/map.lua
share/hedgewars/Data/Maps/Knockball/map.lua
--- 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()