# HG changeset patch # User Wuzzy # Date 1493224701 -7200 # Node ID ae699a0b054b23eebb4e948cd1edd59cb93c04bd # Parent 43eb886f479b2078988e5687268fdac11119ec97 HedgeEditor: Disable waypoint export because output scripts break when waypoints have been added diff -r 43eb886f479b -r ae699a0b054b 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