mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
fast_move and free_move can now be toggled
This commit is contained in:
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
|
||||
{
|
||||
|
Reference in New Issue
Block a user