forked from 0ad/0ad
Don't lose the player-offline hint on diplomacy change. Patch by dalerank, fixes #3677.
Also remove the "disconnected" property which has apparently never been
used since its introduction in 81f5e0ac5f
.
This was SVN commit r17760.
This commit is contained in:
parent
5485f50948
commit
ab57951198
@ -33,7 +33,7 @@ function getPlayerData(playerAssignments)
|
||||
"isNeutral": playerState.isNeutral,
|
||||
"isEnemy": playerState.isEnemy,
|
||||
"guid": undefined, // network guid for players controlled by hosts
|
||||
"disconnected": false // flag for host-controlled players who have left the game
|
||||
"offline": true
|
||||
};
|
||||
players.push(player);
|
||||
}
|
||||
@ -48,6 +48,7 @@ function getPlayerData(playerAssignments)
|
||||
{
|
||||
players[playerAssignment.player].guid = playerGuid;
|
||||
players[playerAssignment.player].name = playerAssignment.name;
|
||||
players[playerAssignment.player].offline = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user