summaryrefslogtreecommitdiff
path: root/src/player_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-13 06:05:01 +0000
committerrubidium <rubidium@openttd.org>2008-08-13 06:05:01 +0000
commitc816cc37fd01eb9b0842fd22cf5e79473d338c9f (patch)
treedd64aeafae6994a4ed4e2d23a71d62db7de1668f /src/player_type.h
parent688267ad524c955567924294d0e066379994773b (diff)
downloadopenttd-c816cc37fd01eb9b0842fd22cf5e79473d338c9f.tar.xz
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
Diffstat (limited to 'src/player_type.h')
-rw-r--r--src/player_type.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/player_type.h b/src/player_type.h
index 0dbd4e687..aa7aea868 100644
--- a/src/player_type.h
+++ b/src/player_type.h
@@ -31,8 +31,10 @@ 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
+ MAX_LENGTH_PRESIDENT_NAME_BYTES = 31, ///< The maximum length of a president name in bytes including '\0'
+ MAX_LENGTH_PRESIDENT_NAME_PIXELS = 94, ///< The maximum length of a president name in pixels
+ MAX_LENGTH_COMPANY_NAME_BYTES = 31, ///< The maximum length of a company name in bytes including '\0'
+ MAX_LENGTH_COMPANY_NAME_PIXELS = 150, ///< The maximum length of a company name in pixels
};
/** Define basic enum properties */