summaryrefslogtreecommitdiff
path: root/src/group_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/group_type.h
parent08e7da71f520649359bbe40656a7c93e6ac2e1b0 (diff)
downloadopenttd-97c184f8f8265cf59b24ab3081a032c7162afcb5.tar.xz
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
Diffstat (limited to 'src/group_type.h')
-rw-r--r--src/group_type.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/group_type.h b/src/group_type.h
index 9d4f269ed..94b25ab27 100644
--- a/src/group_type.h
+++ b/src/group_type.h
@@ -11,6 +11,9 @@ enum {
ALL_GROUP = 0xFFFD,
DEFAULT_GROUP = 0xFFFE, ///< ungrouped vehicles are in this group.
INVALID_GROUP = 0xFFFF,
+
+ MAX_LENGTH_GROUP_NAME_BYTES = 31, ///< The maximum length of a group name in bytes including '\0'
+ MAX_LENGTH_GROUP_NAME_PIXELS = 150, ///< The maximum length of a group name in pixels
};
struct Group;