summaryrefslogtreecommitdiff
path: root/openttd.h
diff options
context:
space:
mode:
Diffstat (limited to 'openttd.h')
-rw-r--r--openttd.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/openttd.h b/openttd.h
index 5221ffe76..9e9d26861 100644
--- a/openttd.h
+++ b/openttd.h
@@ -52,7 +52,12 @@ typedef uint16 UnitID; ///< All unitnumber stuff is of this type (or anyway, s
typedef uint32 WindowNumber;
typedef byte WindowClass;
-typedef uint8 Year;
+enum {
+ INVALID_YEAR = -1,
+ INVALID_DATE = (uint16)-1,
+};
+
+typedef int16 Year;
typedef uint16 Date;