diff options
author | Gaƫl C <gael-de-sailly@netc.eu> | 2018-12-01 10:01:32 +0100 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-12-01 10:01:32 +0100 |
commit | 327bad2eafb8cfc05b7f831992be5700a167a53c (patch) | |
tree | 682d70aca114d7d350ed23b22075c96c2fc549be /src/player.cpp | |
parent | dcf58a3ad0c1092b3537039ee55892bb7dc83dee (diff) | |
download | minetest-327bad2eafb8cfc05b7f831992be5700a167a53c.tar.gz minetest-327bad2eafb8cfc05b7f831992be5700a167a53c.tar.bz2 minetest-327bad2eafb8cfc05b7f831992be5700a167a53c.zip |
Added pitch fly mode (#7817)
In pitch fly mode, you fly to the exact direction you are pointing at, using the forward key. Other move directions are also pitched accordingly.
It allows smoother and more complex movements.
Can be enabled/disabled by L key by default (set keymap_pitchfly in minetest.conf)
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/player.cpp b/src/player.cpp index 4b104a71b..f00eb0829 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -139,6 +139,7 @@ void Player::clearHud() void PlayerSettings::readGlobalSettings() { free_move = g_settings->getBool("free_move"); + pitch_fly = g_settings->getBool("pitch_fly"); fast_move = g_settings->getBool("fast_move"); continuous_forward = g_settings->getBool("continuous_forward"); always_fly_fast = g_settings->getBool("always_fly_fast"); |