mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-23 21:29:13 +02:00
Restore SDL_main in CMT.cpp
This commit is contained in:
parent
e23dfec6c5
commit
f4d67fe675
@ -36,6 +36,8 @@
|
|||||||
#include <boost/program_options.hpp>
|
#include <boost/program_options.hpp>
|
||||||
#include <vstd/StringUtils.h>
|
#include <vstd/StringUtils.h>
|
||||||
|
|
||||||
|
#include <SDL_main.h>
|
||||||
|
|
||||||
#ifdef VCMI_ANDROID
|
#ifdef VCMI_ANDROID
|
||||||
#include "../lib/CAndroidVMHelper.h"
|
#include "../lib/CAndroidVMHelper.h"
|
||||||
#include <SDL_system.h>
|
#include <SDL_system.h>
|
||||||
|
@ -132,7 +132,7 @@ void CMinimap::moveAdvMapSelection()
|
|||||||
int3 newLocation = pixelToTile(GH.getCursorPosition() - pos.topLeft());
|
int3 newLocation = pixelToTile(GH.getCursorPosition() - pos.topLeft());
|
||||||
adventureInt->centerOnTile(newLocation);
|
adventureInt->centerOnTile(newLocation);
|
||||||
|
|
||||||
if (!(adventureInt->isActive() & GENERAL))
|
if (!(adventureInt->isActive()))
|
||||||
GH.windows().totalRedraw(); //redraw this as well as inactive adventure map
|
GH.windows().totalRedraw(); //redraw this as well as inactive adventure map
|
||||||
else
|
else
|
||||||
redraw();//redraw only this
|
redraw();//redraw only this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user