summaryrefslogtreecommitdiff
path: root/src/company_type.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2009-08-03 20:02:25 +0000
committerbelugas <belugas@openttd.org>2009-08-03 20:02:25 +0000
commita2b996106ea25c97ece3e724c10d9d1b9e1d5aa2 (patch)
tree5cc371e6bbe7677dccd271c6c169145d51722d73 /src/company_type.h
parent37d01c7758d018bfd2d29b623f83bde080598233 (diff)
downloadopenttd-a2b996106ea25c97ece3e724c10d9d1b9e1d5aa2.tar.xz
(svn r17058) -Codechange: magic numbers removal.
Two values used intead of just one, as it gives more possibilities to those who dare...
Diffstat (limited to 'src/company_type.h')
-rw-r--r--src/company_type.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/company_type.h b/src/company_type.h
index 997cc40a1..db190797b 100644
--- a/src/company_type.h
+++ b/src/company_type.h
@@ -37,6 +37,10 @@ enum {
MAX_LENGTH_COMPANY_NAME_PIXELS = 150, ///< The maximum length of a company name in pixels
};
+enum {
+ MAX_HISTORY_MONTHS = 24, ///< The maximum number of months kept as performance's history
+};
+
/** Define basic enum properties */
template <> struct EnumPropsT<Owner> : MakeEnumPropsT<Owner, byte, OWNER_BEGIN, OWNER_END, INVALID_OWNER> {};
typedef TinyEnumT<Owner> OwnerByte;