Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-01-15 16:57:26 +0000
committerStijn Buys <ingar@osirion.org>2012-01-15 16:57:26 +0000
commit877aed6c718760dbc889ef667d8fd8881f6eb133 (patch)
treee744337f19ed1b4a03718c91f624f9f62efb9c34
parent5b58252eb8805f45bf5f945c44c0647f6975ae7f (diff)
Hide the join menu in non-interactive games.
-rw-r--r--src/client/mainmenu.cc4
1 files changed, 4 insertions, 0 deletions
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;