1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

add also savegame

This commit is contained in:
Michael 2023-09-02 20:39:16 +02:00 committed by Ivan Savenko
parent 36ab973dc8
commit 287c0daaff

View File

@ -216,7 +216,7 @@ void InfoCard::changeSelection()
flagbox->recreate(); flagbox->recreate();
labelDifficulty->setText(CGI->generaltexth->arraytxt[142 + mapInfo->mapHeader->difficulty]); labelDifficulty->setText(CGI->generaltexth->arraytxt[142 + mapInfo->mapHeader->difficulty]);
iconDifficulty->setSelected(SEL->getCurrentDifficulty()); iconDifficulty->setSelected(SEL->getCurrentDifficulty());
if(SEL->screenType == ESelectionScreen::loadGame) if(SEL->screenType == ESelectionScreen::loadGame || SEL->screenType == ESelectionScreen::saveGame)
for(auto & button : iconDifficulty->buttons) for(auto & button : iconDifficulty->buttons)
button.second->setEnabled(button.first == SEL->getCurrentDifficulty()); button.second->setEnabled(button.first == SEL->getCurrentDifficulty());