diff options
author | rubidium <rubidium@openttd.org> | 2008-07-17 11:19:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-07-17 11:19:20 +0000 |
commit | 03afcec36f58dc368b7b9d877a257872857d31e9 (patch) | |
tree | 99f9e6d200177e3369eb4e755598004f5bb54e2f /src/player_type.h | |
parent | 7c531c4ececb02109b5651741b915f89027324b9 (diff) | |
download | openttd-03afcec36f58dc368b7b9d877a257872857d31e9.tar.xz |
(svn r13712) -Fix: enforce the length restrictions of company and president name in the commands too.
Diffstat (limited to 'src/player_type.h')
-rw-r--r-- | src/player_type.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/player_type.h b/src/player_type.h index bf33923be..79d92f691 100644 --- a/src/player_type.h +++ b/src/player_type.h @@ -30,6 +30,11 @@ enum Owner { }; DECLARE_POSTFIX_INCREMENT(Owner); +enum { + MAX_LENGTH_PRESIDENT_NAME = 31, ///< The maximum length for a president's name + MAX_LENGTH_COMPANY_NAME = 31, ///< The maximum length for a company's name +}; + /** Define basic enum properties */ template <> struct EnumPropsT<Owner> : MakeEnumPropsT<Owner, byte, OWNER_BEGIN, OWNER_END, INVALID_OWNER> {}; typedef TinyEnumT<Owner> OwnerByte; |