From f4d67fe6759d929f99e7a8e5740acf2c74ef606c Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Fri, 19 May 2023 20:03:04 +0300 Subject: [PATCH] Restore SDL_main in CMT.cpp --- client/CMT.cpp | 2 ++ client/adventureMap/CMinimap.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 #include +#include + #ifdef VCMI_ANDROID #include "../lib/CAndroidVMHelper.h" #include 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