1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Move buttons blocks at proper place

This commit is contained in:
nordsoft 2022-11-25 14:36:17 +04:00
parent ebb65b5d0e
commit 41e652dad2

View File

@ -427,9 +427,6 @@ void CBonusSelection::startMap()
if(scenario.prolog.hasPrologEpilog)
{
GH.pushIntT<CPrologEpilogVideo>(scenario.prolog, exitCb);
buttonStart->block(true);
buttonRestart->block(true);
buttonBack->block(true);
}
else
{
@ -437,6 +434,11 @@ void CBonusSelection::startMap()
}
};
//block buttons immediately
buttonStart->block(true);
buttonRestart->block(true);
buttonBack->block(true);
if(LOCPLINT) // we're currently ingame, so ask for starting new map and end game
{
close();