From aa63d074970690f44a466dfc4e513d33bf363099 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Mon, 10 Jun 2013 20:08:03 +0000 Subject: [PATCH] disable joining in progress games for release (controlled by optional setting EnableJoinInProgressGame=true) --- source/glest_game/menu/menu_state_custom_game.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/glest_game/menu/menu_state_custom_game.cpp b/source/glest_game/menu/menu_state_custom_game.cpp index 5cb52796e..acb04424e 100644 --- a/source/glest_game/menu/menu_state_custom_game.cpp +++ b/source/glest_game/menu/menu_state_custom_game.cpp @@ -340,13 +340,16 @@ MenuStateCustomGame::MenuStateCustomGame(Program *program, MainMenu *mainMenu, } listBoxAISwitchTeamAcceptPercent.setSelectedItem(intToStr(30)); + bool allowInProgressJoin = Config::getInstance().getBool("EnableJoinInProgressGame","false"); labelAllowInGameJoinPlayer.registerGraphicComponent(containerName,"labelAllowInGameJoinPlayer"); labelAllowInGameJoinPlayer.init(xoffset+410, 670, 80); labelAllowInGameJoinPlayer.setText(lang.get("AllowInGameJoinPlayer")); + labelAllowInGameJoinPlayer.setVisible(allowInProgressJoin); checkBoxAllowInGameJoinPlayer.registerGraphicComponent(containerName,"checkBoxAllowInGameJoinPlayer"); checkBoxAllowInGameJoinPlayer.init(xoffset+600, 670); checkBoxAllowInGameJoinPlayer.setValue(false); + checkBoxAllowInGameJoinPlayer.setVisible(allowInProgressJoin); // Which Pathfinder //labelPathFinderType.registerGraphicComponent(containerName,"labelPathFinderType");