Bläddra i källkod

Compile fixes for previous commit.

DjWarmonger 13 år sedan
förälder
incheckning
ef250fcb8f
3 ändrade filer med 4 tillägg och 8 borttagningar
  1. 2 6
      client/AdventureMapClasses.cpp
  2. 1 1
      client/GUIClasses.cpp
  3. 1 1
      client/UIFramework/CIntObject.cpp

+ 2 - 6
client/AdventureMapClasses.cpp

@@ -8,6 +8,7 @@
 #include "../lib/CGameState.h"
 #include "../lib/CGeneralTextHandler.h"
 #include "../lib/NetPacks.h"
+#include "../lib/CHeroHandler.h"
 #include "CAdvmapInterface.h"
 #include "CAnimation.h"
 #include "CGameInfo.h"
@@ -527,12 +528,7 @@ void CMinimap::moveAdvMapSelection()
 
 	int3 mapSizes = LOCPLINT->cb->getMapSize();
 
-	int3 newLocation =
-	{
-	    si32(mapSizes.x * dx),
-	    si32(mapSizes.y * dy),
-	    si32(level)
-	};
+	int3 newLocation (mapSizes.x * dx, mapSizes.y * dy, level);
 
 	adventureInt->centerOn(newLocation);
 

+ 1 - 1
client/GUIClasses.cpp

@@ -92,7 +92,7 @@ void CArmyTooltip::init(const InfoAboutArmy &army)
 		{
 			//if =0 - we have no information about stack size at all
 			if (slot.second.count)
-				subtitle = VLC->generaltexth->arraytxt[171 + 3*(slot.second.count)];
+				subtitle = CGI->generaltexth->arraytxt[171 + 3*(slot.second.count)];
 		}
 
 		new CLabel(slotsPos[slot.first].x + 17, slotsPos[slot.first].y + 41, FONT_TINY, CENTER, Colors::Cornsilk, subtitle);

+ 1 - 1
client/UIFramework/CIntObject.cpp

@@ -1,4 +1,4 @@
-#include "../StdInc.h"
+#include "StdInc.h"
 #include "CIntObject.h"
 #include "CGuiHandler.h"
 #include "SDL_Extensions.h"