HedgeEditor: Disable waypoint export because output scripts break when waypoints have been added
authorWuzzy <almikes@aol.com>
Wed, 26 Apr 2017 18:38:21 +0200
changeset 12339 ae699a0b054b
parent 12338 43eb886f479b
child 12340 f706ca71aa86
HedgeEditor: Disable waypoint export because output scripts break when waypoints have been added
share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Wed Apr 26 18:18:05 2017 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Wed Apr 26 18:38:21 2017 +0200
@@ -2033,13 +2033,17 @@
 
 	for i = 0, (placedCount-1) do
 		if placedType[i] == loc("Waypoint Editing Mode") then
+			--[[ TODO/FIXME: Somehow incorporate the waypoints in an actual useful manner.
+			The functions AddWayPoint and PreviewWayPoint do not exist and will thus be commented-out
+			in the output code. They are added anyway so the user sees the coordinates
+			]]
 			table.insert(waypointList,
-			"	AddWayPoint(" ..
+			"--	AddWayPoint(" ..
 				placedX[i] ..", " ..
 				placedY[i] ..")"
 				)
 			table.insert(hFlagList, "	" .. placedX[i] .. " " .. placedY[i] .. " " .. "0")
-			table.insert(previewDataList, "	PreviewWayPoint(" .. placedX[i] ..", " ..	placedY[i] .. ")")
+			table.insert(previewDataList, "--	PreviewWayPoint(" .. placedX[i] ..", " ..	placedY[i] .. ")")
 		end
 	end