diff --git a/client/windows/CAdvmapInterface.cpp b/client/windows/CAdvmapInterface.cpp index 2d1e8c058..676d6e353 100644 --- a/client/windows/CAdvmapInterface.cpp +++ b/client/windows/CAdvmapInterface.cpp @@ -505,7 +505,7 @@ CAdvMapInt::CAdvMapInt(): for (int g=0; g callback, config::ButtonInfo info, int key) -> CButton * @@ -633,9 +633,6 @@ CAdvMapInt::~CAdvMapInt() { SDL_FreeSurface(bg); - for(int i=0; isetFrame(LOCPLINT->playerID.getNum()); if(updateScreen) { int3 betterPos = LOCPLINT->repairScreenPos(position); @@ -993,16 +992,16 @@ void CAdvMapInt::show(SDL_Surface * to) } terrain.show(to); - for(int i=0;i<4;i++) - blitAt(gems[i]->ourImages[LOCPLINT->playerID.getNum()].bitmap,ADVOPT.gemX[i],ADVOPT.gemY[i],to); + for(int i = 0; i < 4; i++) + gems[i]->showAll(to); updateScreen=false; LOCPLINT->cingconsole->show(to); } else if (terrain.needsAnimUpdate()) { terrain.showAnim(to); - for(int i=0;i<4;i++) - blitAt(gems[i]->ourImages[LOCPLINT->playerID.getNum()].bitmap,ADVOPT.gemX[i],ADVOPT.gemY[i],to); + for(int i = 0; i < 4; i++) + gems[i]->showAll(to); } infoBar.show(to); diff --git a/client/windows/CAdvmapInterface.h b/client/windows/CAdvmapInterface.h index d86b0a789..44d9ce7bd 100644 --- a/client/windows/CAdvmapInterface.h +++ b/client/windows/CAdvmapInterface.h @@ -131,25 +131,25 @@ public: EAdvMapMode mode; float worldViewScale; - + struct WorldViewOptions { bool showAllTerrain; //for expert viewEarth - + std::vector iconPositions; - + WorldViewOptions(); - + void clear(); - - void adjustDrawingInfo(MapDrawingInfo & info); + + void adjustDrawingInfo(MapDrawingInfo & info); }; - - WorldViewOptions worldViewOptions; + + WorldViewOptions worldViewOptions; SDL_Surface * bg; SDL_Surface * bgWorldView; - std::vector gems; + std::vector gems; CMinimap minimap; CGStatusBar statusbar;