Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Try not to allow multiple mouse presses when trying to kick people ou…

…t of game.

closes ticket:3209
  • Loading branch information...
commit bc65f978015b73bef462e53726ff53fcdc607d18 1 parent 9909551
vexed authored March 01, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  src/multimenu.cpp
3  src/multimenu.cpp
@@ -1466,8 +1466,9 @@ void intProcessMultiMenu(UDWORD id)
1466 1466
 				char buf[250];
1467 1467
 
1468 1468
 				// Allow the host to kick the AI only in a MP game, or if they activated cheats in a skirmish game
1469  
-				if (NetPlay.bComms || Cheated)
  1469
+				if ((NetPlay.bComms || Cheated) && (NetPlay.players[i].allocated || (NetPlay.players[i].allocated == false && NetPlay.players[i].ai != AI_OPEN)))
1470 1470
 				{
  1471
+					inputLoseFocus();
1471 1472
 					ssprintf(buf, _("The host has kicked %s from the game!"), getPlayerName((unsigned int) i));
1472 1473
 					sendTextMessage(buf, true);
1473 1474
 					ssprintf(buf, _("kicked %s : %s from the game, and added them to the banned list!"), getPlayerName((unsigned int) i), NetPlay.players[i].IPtextAddress);

0 notes on commit bc65f97

Please sign in to comment.
Something went wrong with that request. Please try again.