1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

Merge pull request #91 from Fayth/fix-advmap-restoring

Short and clear code is always welcome.
This commit is contained in:
DjWarmonger
2015-02-18 07:59:00 +01:00
3 changed files with 7 additions and 16 deletions

View File

@ -550,20 +550,14 @@ CAdvMapInt::CAdvMapInt():
Colors::WHITE, CGI->generaltexth->allTexts[618]));
activeMapPanel = panelMain;
restoreState();
addUsedEvents(MOVE);
}
void CAdvMapInt::restoreState()
{
changeMode(EAdvMapMode::NORMAL);
underground->block(!CGI->mh->map->twoLevel);
questlog->block(!CGI->mh->map->quests.size());
worldViewUnderground->block(!CGI->mh->map->twoLevel);
terrain.currentPath = nullptr; // invalidate previously visible path after game reload
addUsedEvents(MOVE);
}
CAdvMapInt::~CAdvMapInt()