Remove ScriptParam from HedgeEditor
authorWuzzy <almikes@aol.com>
Wed, 04 Oct 2017 21:33:05 +0200
changeset 12648 c755afd8fb6b
parent 12647 f190ed9df875
child 12649 2837dee472cc
Remove ScriptParam from HedgeEditor
share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Wed Oct 04 21:25:27 2017 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Wed Oct 04 21:33:05 2017 +0200
@@ -291,8 +291,6 @@
 local shoppaPY = {}
 local shoppaPR = {}
 
-local savedScriptParam = ""
-
 -- Misc. state variables
 local hedgeEditorMissionPanelShown = false
 local tagGears = {}
@@ -1594,13 +1592,11 @@
 
 	WriteLnToConsole("	Ready = " .. Ready)
 	WriteLnToConsole("	AirMinesNum = " .. AirMinesNum)
-	if savedScriptParam ~= "" then
-		-- TODO:
-		--WriteLnToConsole("	ScriptParam = \"" .. savedScriptParam .. "\"")
-	end
 	WriteLnToConsole("	GetAwayTime = " .. GetAwayTime)
 	WriteLnToConsole("	WorldEdge = " .. WorldEdge)
 
+	-- ScriptParam intentionally left out, it doesn't make sense for missions.
+
 	WriteLnToConsole("")
 
 	SaveHogData()
@@ -3345,9 +3341,6 @@
 		mapID = 1
 	end
 
-	-- Neccessary cuz ScriptParam is not global
-	savedScriptParam = ScriptParam
-
 end
 
 function onGameInit()