mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
fast_move and free_move can now be toggled
This commit is contained in:
parent
5200f96707
commit
544aeb0840
2 changed files with 24 additions and 0 deletions
22
src/game.cpp
22
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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue