浏览代码

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)
 		if(scenario.prolog.hasPrologEpilog)
 		{
 		{
 			GH.pushIntT<CPrologEpilogVideo>(scenario.prolog, exitCb);
 			GH.pushIntT<CPrologEpilogVideo>(scenario.prolog, exitCb);
-			buttonStart->block(true);
-			buttonRestart->block(true);
-			buttonBack->block(true);
 		}
 		}
 		else
 		else
 		{
 		{
 			exitCb();
 			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
 	if(LOCPLINT) // we're currently ingame, so ask for starting new map and end game
 	{
 	{