summaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-10-15 23:48:34 +0000
committerDarkvater <Darkvater@openttd.org>2006-10-15 23:48:34 +0000
commit9e8b0774265f499c8b3df789fb24f1882bb4ed10 (patch)
treeb6419eb336f33a543168cce79ecd4086674ed9c6 /player.h
parent23ab588a61f150a67f98c5908819ef7c1fd21a8c (diff)
downloadopenttd-9e8b0774265f499c8b3df789fb24f1882bb4ed10.tar.xz
(svn r6787) -Codechange: Use PLAYER_NEW_COMPANY as a player identifier wishing to become a
new player instead of a 0.
Diffstat (limited to 'player.h')
-rw-r--r--player.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/player.h b/player.h
index 0b17c3d4b..5d560d442 100644
--- a/player.h
+++ b/player.h
@@ -213,7 +213,8 @@ VARDEF PlayerID _current_player;
/* Player identifiers All players below MAX_PLAYERS are playable
* players, above, they are special, computer controlled players */
-enum {
+enum Players {
+ 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,
};