[compassgps] Update to Git patch 14179c2:
https://github.com/AntumDeluge/mtmod-compassgps/tree/14179c2
This commit is contained in:
parent
7bcdec71e5
commit
a05cede2d1
@ -509,7 +509,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||
[patch.christmas]: https://github.com/AntumDeluge/mtmod-christmas/tree/f6c8dc2
|
||||
[patch.clean]: https://github.com/AntumDeluge/mtmod-clean/tree/ec7cfff
|
||||
[patch.cme]: https://github.com/AntumDeluge/mtmp-cme/tree/27234af
|
||||
[patch.compassgps]: https://github.com/AntumDeluge/mtmod-compassgps/tree/888ec15
|
||||
[patch.compassgps]: https://github.com/AntumDeluge/mtmod-compassgps/tree/14179c2
|
||||
[patch.craftguide]: https://github.com/AntumDeluge/mtmod-craftguide/tree/1197b13
|
||||
[patch.crafting_bench]: https://github.com/AntumDeluge/mtmod-crafting_bench/tree/c5ff4e5
|
||||
[patch.crops]: https://github.com/AntumDeluge/mtmod-crops/tree/f8b33ae
|
||||
|
@ -1035,7 +1035,7 @@ minetest.register_globalstep(function(dtime)
|
||||
point_to[playername]=point_to[playername] or compassgps.get_default_bookmark(playername,1)
|
||||
target=point_to[playername] --just to take up less space
|
||||
pos = player:getpos()
|
||||
dir = player:get_look_yaw()
|
||||
dir = player:get_look_horizontal()
|
||||
local angle_north = math.deg(math.atan2(target.x - pos.x, target.z - pos.z))
|
||||
if angle_north < 0 then angle_north = angle_north + 360 end
|
||||
local angle_dir = 90 - math.deg(dir)
|
||||
|
Loading…
x
Reference in New Issue
Block a user