소스 검색

Restore SDL_main in CMT.cpp

Ivan Savenko 2 년 전
부모
커밋
f4d67fe675
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 0
      client/CMT.cpp
  2. 1 1
      client/adventureMap/CMinimap.cpp

+ 2 - 0
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>

+ 1 - 1
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