From 877aed6c718760dbc889ef667d8fd8881f6eb133 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 15 Jan 2012 16:57:26 +0000 Subject: Hide the join menu in non-interactive games. --- src/client/mainmenu.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client/mainmenu.cc b/src/client/mainmenu.cc index e2b3170..ac065d8 100644 --- a/src/client/mainmenu.cc +++ b/src/client/mainmenu.cc @@ -325,6 +325,10 @@ void MainMenu::draw() } } else if (mainmenu_activemenu == mainmenu_joinmenu) { + if (!core::game()->interactive()) { + hide(); + return; + } if (core::localcontrol()) { hide(); return; -- cgit v1.2.3