diff options
author | rubidium <rubidium@openttd.org> | 2008-08-13 06:05:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-08-13 06:05:01 +0000 |
commit | c816cc37fd01eb9b0842fd22cf5e79473d338c9f (patch) | |
tree | dd64aeafae6994a4ed4e2d23a71d62db7de1668f /src/town_type.h | |
parent | 688267ad524c955567924294d0e066379994773b (diff) | |
download | openttd-c816cc37fd01eb9b0842fd22cf5e79473d338c9f.tar.xz |
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
Diffstat (limited to 'src/town_type.h')
-rw-r--r-- | src/town_type.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/town_type.h b/src/town_type.h index 0127d92ed..3cb4151be 100644 --- a/src/town_type.h +++ b/src/town_type.h @@ -81,4 +81,9 @@ enum TownLayout { template <> struct EnumPropsT<TownLayout> : MakeEnumPropsT<TownLayout, byte, TL_NO_ROADS, NUM_TLS, NUM_TLS> {}; typedef TinyEnumT<TownLayout> TownLayoutByte; //typedefing-enumification of TownLayout +enum { + MAX_LENGTH_TOWN_NAME_BYTES = 31, ///< The maximum length of a town name in bytes including '\0' + MAX_LENGTH_TOWN_NAME_PIXELS = 130, ///< The maximum length of a town name in pixels +}; + #endif /* TOWN_TYPE_H */ |