autofly: removed image test

wsc-master-rebase
cora 2020-11-01 16:21:54 +01:00 committed by Schmappie Eldress
parent 1f1e7558b0
commit 7a757a8c6a
3 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,7 @@ minetest.register_globalstep(function()
elseif autoeat.eating then
last_step_eating = true
end
if not autoeat_timed then return end
if ( autofly.speed ~= 0 and minetest.settings:get_bool("autosprint") )
or (minetest.settings:get_bool("autosprintfsprint") and minetest.settings:get_bool("continuous_forward") )

View File

@ -232,6 +232,8 @@ end
function autofly.arrived()
minetest.settings:set("continuous_forward", "false")
minetest.settings:set_bool("pitch_move",oldpm)
minetest.settings:set_bool("afly_autoaim",false)
minetest.settings:set_bool("autoeat_timed",false)
core.set_keypress("special1", false)
autofly.set_hud_info("Arrived at destination")
minetest.localplayer:hud_change(hud_info,'text',twpname .. "\n" .. "Arrived at destination.")

View File

@ -26,7 +26,6 @@ function autofly.display_formspec()
'button[2.125,7.5;1.2,0.5;warpae;w+e]' ..
'button[2.625,7.5;1.3,0.5;rename;Rename]' ..
'button[3.9375,7.5;1.3,0.5;delete;Delete]' ..
'image[50,50;100,100;"test"]'..
'textlist[0,0.75;5,6;marker;'
-- Iterate over all the waypoints