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 0b8ac0a22f2fcebb7cbd00bbb36fd0c89191d34a
Showing with 2 additions and 1 deletion.
  1. +2 −1 Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp
@@ -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.
You can’t perform that action at this time.