Fixed variable name
This commit is contained in:
parent
64e6b3830c
commit
ed7b0a6cf2
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue