Skip to content
Snippets Groups Projects
Commit b292975f authored by Marcin's avatar Marcin Committed by paramat
Browse files

Use PI variable rather than unclear constant

parent 3fb6ee5b
No related branches found
No related tags found
No related merge requests found
local pi = math.pi
local player_in_bed = 0
local is_sp = minetest.is_singleplayer()
local enable_respawn = minetest.setting_getbool("enable_bed_respawn")
......@@ -11,13 +12,13 @@ end
local function get_look_yaw(pos)
local n = minetest.get_node(pos)
if n.param2 == 1 then
return 7.9, n.param2
return pi/2, n.param2
elseif n.param2 == 3 then
return 4.75, n.param2
return -pi/2, n.param2
elseif n.param2 == 0 then
return 3.15, n.param2
return pi, n.param2
else
return 6.28, n.param2
return 0, n.param2
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment