diff --git a/client/CMT.cpp b/client/CMT.cpp index a64797ded..1978dec16 100644 --- a/client/CMT.cpp +++ b/client/CMT.cpp @@ -36,6 +36,8 @@ #include <boost/program_options.hpp> #include <vstd/StringUtils.h> +#include <SDL_main.h> + #ifdef VCMI_ANDROID #include "../lib/CAndroidVMHelper.h" #include <SDL_system.h> diff --git a/client/adventureMap/CMinimap.cpp b/client/adventureMap/CMinimap.cpp index 6ce334230..39240fd2d 100644 --- a/client/adventureMap/CMinimap.cpp +++ b/client/adventureMap/CMinimap.cpp @@ -132,7 +132,7 @@ void CMinimap::moveAdvMapSelection() int3 newLocation = pixelToTile(GH.getCursorPosition() - pos.topLeft()); adventureInt->centerOnTile(newLocation); - if (!(adventureInt->isActive() & GENERAL)) + if (!(adventureInt->isActive())) GH.windows().totalRedraw(); //redraw this as well as inactive adventure map else redraw();//redraw only this