diff --git a/luaui/Widgets/Tests/cmd_blueprint/test_cmd_blueprint_line.lua b/luaui/Widgets/Tests/cmd_blueprint/test_cmd_blueprint_line.lua index aa81b408f3a..53e1c5e50c5 100644 --- a/luaui/Widgets/Tests/cmd_blueprint/test_cmd_blueprint_line.lua +++ b/luaui/Widgets/Tests/cmd_blueprint/test_cmd_blueprint_line.lua @@ -16,9 +16,9 @@ function setup() initialCameraState = Spring.GetCameraState() - Spring.SetCameraState({ - mode = 5, - }) + --Spring.SetCameraState({ + -- mode = 5, + --}) end function cleanup() @@ -112,11 +112,13 @@ function test() end) local sx, sy = Spring.WorldToScreenCoords(x, y, z) + Spring.SetCameraTarget(x, y, z) Spring.WarpMouse(sx, sy) Script.LuaUI.MousePress(sx, sy, 1) sx, sy = Spring.WorldToScreenCoords(x, y, z + bpH * (bpCount - 1)) + Spring.SetCameraTarget(x, y, z + bpH * (bpCount - 1)) Spring.WarpMouse(sx, sy) Test.waitFrames(delay)