diff options
author | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-06-01 17:20:37 -0700 |
---|---|---|
committer | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-06-01 17:20:37 -0700 |
commit | 9850df35ae1097088faed3fd74d2ebcd24dc0152 (patch) | |
tree | 251c85b9daa620eb973a2dea42c57387bec8204d /src/game.cpp | |
parent | a75c31143a9d26d06e298075dfd02465a9fdce69 (diff) | |
parent | 7dfa3442fe658d51cc140f1a44dab768bb1e76a9 (diff) | |
download | minetest-9850df35ae1097088faed3fd74d2ebcd24dc0152.tar.gz minetest-9850df35ae1097088faed3fd74d2ebcd24dc0152.tar.bz2 minetest-9850df35ae1097088faed3fd74d2ebcd24dc0152.zip |
Merge pull request #1 from TeddyDesTodes/master
+ submenu for key assignment, fast_move and free_move can now be toggled
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 603a86da3..7970a6ed9 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1147,6 +1147,28 @@ void the_game( &g_menumgr, dest, L""))->drop(); } + else if(input->wasKeyDown(getKeySetting("keymap_freemove"))) + { + if(g_settings.getBool("free_move")) + { + g_settings.set("free_move","false"); + } + else + { + g_settings.set("free_move","true"); + } + } + else if(input->wasKeyDown(getKeySetting("keymap_fastmove"))) + { + if(g_settings.getBool("fast_move")) + { + g_settings.set("fast_move","false"); + } + else + { + g_settings.set("fast_move","true"); + } + } // Item selection with mouse wheel { |