Skip to content
Permalink
Browse files
Merge pull request #7971 from Techjar/go-away-golf-ui
Qt/NetPlayDialog: Don't create golf UI when host input authority is disabled
  • Loading branch information
spycrab committed Apr 9, 2019
2 parents a06c7df + cd6c918 commit 0b8ac0a
Showing 1 changed file with 2 additions and 1 deletion.
@@ -846,7 +846,8 @@ void NetPlayDialog::OnMsgStartGame()
g_netplay_chat_ui =
std::make_unique<NetPlayChatUI>([this](const std::string& message) { SendMessage(message); });

if (Settings::Instance().GetNetPlayClient()->GetNetSettings().m_GolfMode)
if (m_host_input_authority &&
Settings::Instance().GetNetPlayClient()->GetNetSettings().m_GolfMode)
{
g_netplay_golf_ui = std::make_unique<NetPlayGolfUI>(Settings::Instance().GetNetPlayClient());
}

0 comments on commit 0b8ac0a

Please sign in to comment.