summaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-10-14 15:49:43 +0000
committerDarkvater <Darkvater@openttd.org>2006-10-14 15:49:43 +0000
commita85d679f545ea7fec03db426ec033e5e83258a91 (patch)
tree4d65683dddf832ac860c3ff0f26f99db4e9ea997 /player.h
parent94339a884d1c7eaaecc8a5963cb985ca17d3e7df (diff)
downloadopenttd-a85d679f545ea7fec03db426ec033e5e83258a91.tar.xz
(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)
Diffstat (limited to 'player.h')
-rw-r--r--player.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/player.h b/player.h
index 444971604..41bf22fe0 100644
--- a/player.h
+++ b/player.h
@@ -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];