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
commit97c184f8f8265cf59b24ab3081a032c7162afcb5 (patch)
treedd64aeafae6994a4ed4e2d23a71d62db7de1668f /src/player_type.h
parent08e7da71f520649359bbe40656a7c93e6ac2e1b0 (diff)
downloadopenttd-97c184f8f8265cf59b24ab3081a032c7162afcb5.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 */