Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Illuna-Minetest
illuna-minetest
Commits
9f927900
Commit
9f927900
authored
10 years ago
by
Sokomine
Committed by
Craig Robbins
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
added enable_build_where_you_stand option
Signed-off-by:
Craig Robbins
<
kde.psych@gmail.com
>
parent
ec5188a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
minetest.conf.example
+3
-0
3 additions, 0 deletions
minetest.conf.example
src/defaultsettings.cpp
+1
-0
1 addition, 0 deletions
src/defaultsettings.cpp
src/game.cpp
+1
-0
1 addition, 0 deletions
src/game.cpp
with
5 additions
and
0 deletions
minetest.conf.example
+
3
−
0
View file @
9f927900
...
...
@@ -62,6 +62,9 @@
#keymap_quicktune_dec = KEY_NEXT
#keymap_quicktune_inc = KEY_PRIOR
#if set to true, you can place blocks at the position (feet + eye level) where you stand; this is helpful when working with nodeboxes
#enable_build_where_you_stand = false
# Minimum FPS
# The amount of rendered stuff is dynamically set according to this
#wanted_fps = 30
...
...
This diff is collapsed.
Click to expand it.
src/defaultsettings.cpp
+
1
−
0
View file @
9f927900
...
...
@@ -63,6 +63,7 @@ void set_default_settings(Settings *settings)
settings
->
setDefault
(
"keymap_camera_mode"
,
"KEY_F7"
);
settings
->
setDefault
(
"keymap_increase_viewing_range_min"
,
"+"
);
settings
->
setDefault
(
"keymap_decrease_viewing_range_min"
,
"-"
);
settings
->
setDefault
(
"enable_build_where_you_stand"
,
"false"
);
settings
->
setDefault
(
"3d_mode"
,
"none"
);
settings
->
setDefault
(
"3d_paralax_strength"
,
"0.025"
);
settings
->
setDefault
(
"aux1_descends"
,
"false"
);
...
...
This diff is collapsed.
Click to expand it.
src/game.cpp
+
1
−
0
View file @
9f927900
...
...
@@ -967,6 +967,7 @@ bool nodePlacementPrediction(Client &client,
// Dont place node when player would be inside new node
// NOTE: This is to be eventually implemented by a mod as client-side Lua
if
(
!
nodedef
->
get
(
n
).
walkable
||
g_settings
->
getBool
(
"enable_build_where_you_stand"
)
||
(
client
.
checkPrivilege
(
"noclip"
)
&&
g_settings
->
getBool
(
"noclip"
))
||
(
nodedef
->
get
(
n
).
walkable
&&
neighbourpos
!=
player
->
getStandingNodePos
()
+
v3s16
(
0
,
1
,
0
)
&&
...
...
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