diff options
author | Stijn Buys <ingar@osirion.org> | 2012-01-15 16:57:26 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-01-15 16:57:26 +0000 |
commit | 877aed6c718760dbc889ef667d8fd8881f6eb133 (patch) | |
tree | e744337f19ed1b4a03718c91f624f9f62efb9c34 | |
parent | 5b58252eb8805f45bf5f945c44c0647f6975ae7f (diff) |
Hide the join menu in non-interactive games.
-rw-r--r-- | src/client/mainmenu.cc | 4 |
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; |