(svn r6814) -Codechange: For network games ci->client_playas was always p->index + 1. To
correctly handle this ci->client_playas - 1 was used all over the code making it pretty confusing at times. Use proper one-on-one values now. Special handling is only needed for user-output to not to confuse users.
This commit is contained in:
1
player.h
1
player.h
@@ -214,6 +214,7 @@ VARDEF PlayerID _current_player;
|
||||
/* Player identifiers All players below MAX_PLAYERS are playable
|
||||
* players, above, they are special, computer controlled players */
|
||||
enum Players {
|
||||
PLAYER_INACTIVE_CLIENT = 253,
|
||||
PLAYER_NEW_COMPANY = 254, ///< Command 'player' in Multiplayer to create a new company
|
||||
PLAYER_SPECTATOR = 255, ///< Spectator in Multiplayer or the player in the scenario editor
|
||||
MAX_PLAYERS = 8,
|
||||
|
Reference in New Issue
Block a user