Fixed variable name

This commit is contained in:
Pali Rohár 2010-10-19 01:24:22 +02:00
parent 64e6b3830c
commit ed7b0a6cf2

View file

@ -969,10 +969,10 @@ void NetworkEvent(void)
// Handle some messages.
//
if (packet.Header.Type[i] == MessageQuit) {
int player = ntohs(nc->X);
int playerNum = ntohs(nc->X);
if (player >= 0 && player < NumPlayers) {
PlayerQuit[player] = 1;
if (playerNum >= 0 && playerNum < NumPlayers) {
PlayerQuit[playerNum] = 1;
validCommand = true;
}
}