Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to kick players from netplay. #436

Merged
merged 1 commit into from Jun 19, 2014

Conversation

RachelBryk
Copy link
Member

No description provided.

void NetPlayDiag::OnKick(wxCommandEvent&)
{
wxString selection = m_player_lbox->GetStringSelection();
long player = 0;

This comment was marked as off-topic.

@OussamaDanba
Copy link
Contributor

The only issue I found with this is when kicking players who occupy the same slot. However this shouldn't be happening in the first place and is irrelevant to this PR since it also happens on master.

@OussamaDanba
Copy link
Contributor

Instead of a warning you now disable the button. However it doesn't properly disable after kicking someone. You'll lose your selection but the kick button stays enabled. (Clicking it does nothing)

@@ -583,6 +583,18 @@ void NetPlayServer::SendToClients(sf::Packet& packet, const PlayerId skip_pid)
}
}

void NetPlayServer::KickPlayer(u8 player)
{
for (auto i = m_players.begin(); i != m_players.end(); ++i)

This comment was marked as off-topic.

neobrain added a commit that referenced this pull request Jun 19, 2014
Add an option to kick players from netplay.
@neobrain neobrain merged commit 0b1cb1e into dolphin-emu:master Jun 19, 2014
@RachelBryk RachelBryk deleted the netplay-kick branch July 6, 2014 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants