summaryrefslogtreecommitdiff
path: root/src/player_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-07-17 11:19:20 +0000
committerrubidium <rubidium@openttd.org>2008-07-17 11:19:20 +0000
commit2e4f32023c8f8bb5e116d3779f1c90a33a823008 (patch)
tree99f9e6d200177e3369eb4e755598004f5bb54e2f /src/player_type.h
parent88848d78b5715854cf7788a83e83edeb084c9a9b (diff)
downloadopenttd-2e4f32023c8f8bb5e116d3779f1c90a33a823008.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.h5
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;