Преглед изворни кода

Move buttons blocks at proper place

nordsoft пре 2 година
родитељ
комит
41e652dad2
1 измењених фајлова са 5 додато и 3 уклоњено
  1. 5 3
      client/lobby/CBonusSelection.cpp

+ 5 - 3
client/lobby/CBonusSelection.cpp

@@ -427,15 +427,17 @@ void CBonusSelection::startMap()
 		if(scenario.prolog.hasPrologEpilog)
 		{
 			GH.pushIntT<CPrologEpilogVideo>(scenario.prolog, exitCb);
-			buttonStart->block(true);
-			buttonRestart->block(true);
-			buttonBack->block(true);
 		}
 		else
 		{
 			exitCb();
 		}
 	};
+	
+	//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
 	{