summaryrefslogtreecommitdiff
path: root/src/date_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-25 23:37:15 +0000
committerrubidium <rubidium@openttd.org>2009-11-25 23:37:15 +0000
commita951c505bff54ea4365895126e72a89a09f9fe2d (patch)
tree83190acad7d9bc95b22708cde9bd2c45945baffd /src/date_type.h
parent1a8c203d6ec29cf200b37fd995e865821c8ce888 (diff)
downloadopenttd-a951c505bff54ea4365895126e72a89a09f9fe2d.tar.xz
(svn r18292) -Codechange: add a command to set the start date of a timetable. Based on work by PhilSophus.
Diffstat (limited to 'src/date_type.h')
-rw-r--r--src/date_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/date_type.h b/src/date_type.h
index ae92b1d27..5afc925e4 100644
--- a/src/date_type.h
+++ b/src/date_type.h
@@ -75,7 +75,7 @@ enum {
#define MAX_YEAR 5000000
/** The number of days till the last day */
-#define MAX_DAY DAYS_TILL(MAX_YEAR + 1) - 1
+#define MAX_DAY (DAYS_TILL(MAX_YEAR + 1) - 1)
typedef int32 Date; ///< The type to store our dates in
typedef uint16 DateFract; ///< The fraction of a date we're in, i.e. the number of ticks since the last date changeover