mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-11 01:10:26 +02:00
* saving and resuming games should work!
(loading from the main menu, saving using "save [NAME]" command)
This commit is contained in:
@ -38,11 +38,6 @@ extern TTF_Font * TNRB16, *TNR, *GEOR13, *GEORXX; //fonts
|
||||
using namespace boost::logic;
|
||||
using namespace boost::assign;
|
||||
using namespace CSDL_Ext;
|
||||
CAdvMapInt::~CAdvMapInt()
|
||||
{
|
||||
SDL_FreeSurface(bg);
|
||||
delete heroWindow;
|
||||
}
|
||||
CMinimap::CMinimap(bool draw)
|
||||
{
|
||||
int3 mapSizes = LOCPLINT->cb->getMapSize();
|
||||
@ -107,6 +102,11 @@ CMinimap::CMinimap(bool draw)
|
||||
if (draw)
|
||||
redraw();
|
||||
}
|
||||
CMinimap::~CMinimap()
|
||||
{
|
||||
SDL_FreeSurface(radar);
|
||||
SDL_FreeSurface(temps);
|
||||
}
|
||||
void CMinimap::draw()
|
||||
{
|
||||
int3 mapSizes = LOCPLINT->cb->getMapSize();
|
||||
@ -297,7 +297,9 @@ void CMinimap::showTile(const int3 &pos)
|
||||
void CMinimap::hideTile(const int3 &pos)
|
||||
{
|
||||
}
|
||||
CTerrainRect::CTerrainRect():currentPath(NULL)
|
||||
|
||||
CTerrainRect::CTerrainRect()
|
||||
:currentPath(NULL)
|
||||
{
|
||||
tilesw=ADVOPT.tilesW;
|
||||
tilesh=ADVOPT.tilesH;
|
||||
@ -312,6 +314,10 @@ CTerrainRect::CTerrainRect():currentPath(NULL)
|
||||
arrows->ourImages[y].bitmap = CSDL_Ext::alphaTransform(arrows->ourImages[y].bitmap);
|
||||
}
|
||||
}
|
||||
CTerrainRect::~CTerrainRect()
|
||||
{
|
||||
delete arrows;
|
||||
}
|
||||
void CTerrainRect::activate()
|
||||
{
|
||||
ClickableL::activate();
|
||||
@ -805,6 +811,7 @@ int3 CTerrainRect::whichTileIsIt()
|
||||
{
|
||||
return whichTileIsIt(LOCPLINT->current->motion.x,LOCPLINT->current->motion.y);
|
||||
}
|
||||
|
||||
void CResDataBar::clickRight (tribool down)
|
||||
{
|
||||
}
|
||||
@ -1111,6 +1118,15 @@ townList(ADVOPT.tlistSize,ADVOPT.tlistX,ADVOPT.tlistY,ADVOPT.tlistAU,ADVOPT.tlis
|
||||
gems.push_back(CDefHandler::giveDef(ADVOPT.gemG[3]));
|
||||
}
|
||||
|
||||
CAdvMapInt::~CAdvMapInt()
|
||||
{
|
||||
SDL_FreeSurface(bg);
|
||||
delete heroWindow;
|
||||
|
||||
for(int i=0; i<gems.size(); i++)
|
||||
delete gems[i];
|
||||
}
|
||||
|
||||
void CAdvMapInt::fshowOverview()
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user