share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
changeset 12339 ae699a0b054b
parent 12338 43eb886f479b
child 12355 37ed9df448fa
equal deleted inserted replaced
12338:43eb886f479b 12339:ae699a0b054b
  2031 	table.insert(hFlagList, "	" .. portalDistance*5 .. " " .. ufoFuel .. " " .. 98)
  2031 	table.insert(hFlagList, "	" .. portalDistance*5 .. " " .. ufoFuel .. " " .. 98)
  2032 	WriteLnToConsole("")
  2032 	WriteLnToConsole("")
  2033 
  2033 
  2034 	for i = 0, (placedCount-1) do
  2034 	for i = 0, (placedCount-1) do
  2035 		if placedType[i] == loc("Waypoint Editing Mode") then
  2035 		if placedType[i] == loc("Waypoint Editing Mode") then
       
  2036 			--[[ TODO/FIXME: Somehow incorporate the waypoints in an actual useful manner.
       
  2037 			The functions AddWayPoint and PreviewWayPoint do not exist and will thus be commented-out
       
  2038 			in the output code. They are added anyway so the user sees the coordinates
       
  2039 			]]
  2036 			table.insert(waypointList,
  2040 			table.insert(waypointList,
  2037 			"	AddWayPoint(" ..
  2041 			"--	AddWayPoint(" ..
  2038 				placedX[i] ..", " ..
  2042 				placedX[i] ..", " ..
  2039 				placedY[i] ..")"
  2043 				placedY[i] ..")"
  2040 				)
  2044 				)
  2041 			table.insert(hFlagList, "	" .. placedX[i] .. " " .. placedY[i] .. " " .. "0")
  2045 			table.insert(hFlagList, "	" .. placedX[i] .. " " .. placedY[i] .. " " .. "0")
  2042 			table.insert(previewDataList, "	PreviewWayPoint(" .. placedX[i] ..", " ..	placedY[i] .. ")")
  2046 			table.insert(previewDataList, "--	PreviewWayPoint(" .. placedX[i] ..", " ..	placedY[i] .. ")")
  2043 		end
  2047 		end
  2044 	end
  2048 	end
  2045 
  2049 
  2046 	for i = 0, (placedCount-1) do
  2050 	for i = 0, (placedCount-1) do
  2047 		if placedType[i] == loc("Girder Placement Mode") then
  2051 		if placedType[i] == loc("Girder Placement Mode") then