Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
minetest_game
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zadrog Pzvotrügen
minetest_game
Commits
b292975f
Commit
b292975f
authored
9 years ago
by
Marcin
Committed by
paramat
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use PI variable rather than unclear constant
parent
3fb6ee5b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mods/beds/functions.lua
+5
-4
5 additions, 4 deletions
mods/beds/functions.lua
with
5 additions
and
4 deletions
mods/beds/functions.lua
+
5
−
4
View file @
b292975f
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment