summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-12-03 18:51:15 +0100
committerPilzAdam <pilzadam@minetest.net>2013-12-03 23:20:00 +0100
commit15be2659eae6da2c3807713eb6e068d8aa436423 (patch)
tree8c30131f868ca6a11389c4b0649e1d1980dfb8e6 /src/player.cpp
parentd9de9f23d93a9a6fd8deccbbf3fce58aad5751a1 (diff)
downloadminetest-15be2659eae6da2c3807713eb6e068d8aa436423.tar.gz
minetest-15be2659eae6da2c3807713eb6e068d8aa436423.tar.bz2
minetest-15be2659eae6da2c3807713eb6e068d8aa436423.zip
Add sneak and sneak_glitch to set_physics_override()
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/player.cpp b/src/player.cpp
index 584c00dd0..3481260c0 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -85,9 +85,11 @@ Player::Player(IGameDef *gamedef):
movement_gravity = 9.81 * BS;
// Movement overrides are multipliers and must be 1 by default
- physics_override_speed = 1;
- physics_override_jump = 1;
- physics_override_gravity = 1;
+ physics_override_speed = 1;
+ physics_override_jump = 1;
+ physics_override_gravity = 1;
+ physics_override_sneak = true;
+ physics_override_sneak_glitch = true;
hud_flags = HUD_FLAG_HOTBAR_VISIBLE | HUD_FLAG_HEALTHBAR_VISIBLE |
HUD_FLAG_CROSSHAIR_VISIBLE | HUD_FLAG_WIELDITEM_VISIBLE |