X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fconsole.cpp;h=422e24757313a7d2d97219be3be95c0f314d24e4;hb=959f514b78262ae6b276821bc61864fa6967b97c;hp=2b4df37b2995958b83b4d2e30bedf760d5b723fa;hpb=561d285b2ea0fc084f54ef62b1f9c9d65a4877c8;p=supertux.git diff --git a/src/console.cpp b/src/console.cpp index 2b4df37b2..422e24757 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -29,6 +29,7 @@ #include "main.hpp" #include "log.hpp" #include "resources.hpp" +#include "gameconfig.hpp" /// speed (pixels/s) the console closes static const float FADE_SPEED = 1; @@ -417,6 +418,9 @@ Console::hasFocus() void Console::show() { + if(!config->console_enabled) + return; + focused = true; height = 256; alpha = 1.0;