summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorstujones11 <stujones111@gmail.com>2017-12-06 20:36:29 +0000
committerLoic Blot <loic.blot@unix-experience.fr>2018-03-11 16:56:27 +0100
commit22a891a925d68a096420d3383a2e31b58e3eb244 (patch)
tree21de815d25b2f9727aa019f063566426d265fa74 /src/game.cpp
parent69247ca2233d1b2e77485b8d32aca41c7e525e74 (diff)
downloadminetest-22a891a925d68a096420d3383a2e31b58e3eb244.tar.gz
minetest-22a891a925d68a096420d3383a2e31b58e3eb244.tar.bz2
minetest-22a891a925d68a096420d3383a2e31b58e3eb244.zip
Android build fixes for c++11
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp3
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)");