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 | 61bad9f87dd116328bb609fe6c54f928a151a54a (patch) | |
tree | 75c7f15d24ffe2ffad292f36520f41e75c494310 /src/game.cpp | |
parent | 96d709dac1c609911c343c9cd586848ba4d02a18 (diff) | |
parent | de36e284ae9df9528c393018ecea19172e57f385 (diff) | |
download | minetest-61bad9f87dd116328bb609fe6c54f928a151a54a.tar.gz minetest-61bad9f87dd116328bb609fe6c54f928a151a54a.tar.bz2 minetest-61bad9f87dd116328bb609fe6c54f928a151a54a.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 { |