1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-21 21:17:49 +02:00

Restore SDL_main in CMT.cpp

This commit is contained in:
Ivan Savenko 2023-05-19 20:03:04 +03:00
parent e23dfec6c5
commit f4d67fe675
2 changed files with 3 additions and 1 deletions

View File

@ -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>

View File

@ -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