diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 2145d565d..f1c27d3bb 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -2092,10 +2092,11 @@ void Game::toggleFreeMoveAlt() void Game::toggleFast() { bool fast_move = !g_settings->getBool("fast_move"); + bool has_fast_privs = client->checkPrivilege("fast"); g_settings->set("fast_move", bool_to_cstr(fast_move)); if (fast_move) { - if (client->checkPrivilege("fast")) { + if (has_fast_privs) { m_game_ui->showTranslatedStatusText("Fast mode enabled"); } else { m_game_ui->showTranslatedStatusText("Fast mode enabled (note: no 'fast' privilege)"); |