(svn r6774) -Codechange: Rename the badly named OWNER_SPECTATOR to PLAYER_SPECTATOR and

put it into player.h where it belongs (instead of map.h)
This commit is contained in:
Darkvater
2006-10-14 15:49:43 +00:00
parent abb0fa7bc5
commit dad5d5dd72
30 changed files with 86 additions and 82 deletions

View File

@@ -211,7 +211,13 @@ void UpdatePlayerMoney32(Player *p);
VARDEF PlayerID _local_player;
VARDEF PlayerID _current_player;
#define MAX_PLAYERS 8
/* Player identifiers All players below MAX_PLAYERS are playable
* players, above, they are special, computer controlled players */
enum {
PLAYER_SPECTATOR = 255, ///< Spectator in Multiplayer or the player in the scenario editor
MAX_PLAYERS = 8,
};
VARDEF Player _players[MAX_PLAYERS];
// NOSAVE: can be determined from player structs
VARDEF byte _player_colors[MAX_PLAYERS];