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
1cda39d5
Commit
1cda39d5
authored
12 years ago
by
ShadowNinja
Committed by
PilzAdam
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Don't fall off nodes if sneaking with free_move on but without fly privileges
parent
32552fed
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/localplayer.cpp
+1
-1
1 addition, 1 deletion
src/localplayer.cpp
with
1 addition
and
1 deletion
src/localplayer.cpp
+
1
−
1
View file @
1cda39d5
...
@@ -159,7 +159,7 @@ void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d,
...
@@ -159,7 +159,7 @@ void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d,
If sneaking, keep in range from the last walked node and don't
If sneaking, keep in range from the last walked node and don't
fall off from it
fall off from it
*/
*/
if
(
control
.
sneak
&&
m_sneak_node_exists
&&
!
g_settings
->
getBool
(
"free_move"
))
if
(
control
.
sneak
&&
m_sneak_node_exists
&&
!
(
fly_allowed
&&
g_settings
->
getBool
(
"free_move"
))
)
{
{
f32
maxd
=
0.5
*
BS
+
sneak_max
;
f32
maxd
=
0.5
*
BS
+
sneak_max
;
v3f
lwn_f
=
intToFloat
(
m_sneak_node
,
BS
);
v3f
lwn_f
=
intToFloat
(
m_sneak_node
,
BS
);
...
...
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