summaryrefslogtreecommitdiff
path: root/table
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-20 12:39:17 +0000
committerrubidium <rubidium@openttd.org>2006-08-20 12:39:17 +0000
commitb7a3352009d68bc332d29a32854626e0c532eb34 (patch)
tree33714b71b0f9fc1c73fccdd4b1ed25321adc99fa /table
parent73cd71db04836405a398fb946fb3a5e6345fb2e4 (diff)
downloadopenttd-b7a3352009d68bc332d29a32854626e0c532eb34.tar.xz
(svn r5975) -Cleanup: use ORIGINAL_BASE_YEAR & ORIGINAL_MAX_YEAR where the functions really depend on the original date format.
-Cleanup: use DAYS_TILL_ORIGINAL_BASE_YEAR where the date variables are in the old date format and conversions are needed. -Cleanup: replace one (forgotten) instance of uint16 with Date.
Diffstat (limited to 'table')
-rw-r--r--table/engines.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/table/engines.h b/table/engines.h
index 9365c7f8c..f468f0029 100644
--- a/table/engines.h
+++ b/table/engines.h
@@ -15,7 +15,7 @@
* @param e Rail Type of the vehicle
* @param f Bitmask of the climates
*/
-#define MK(a, b, c, d, e, f) { a, b, c, d, e, f, 0, 8, 0, 0 }
+#define MK(a, b, c, d, e, f) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, b, c, d, e, f, 0, 8, 0, 0 }
/** Writes the properties of a train carriage into the EngineInfo struct.
* @see EngineInfo
* @param a Introduction date
@@ -23,7 +23,7 @@
* @param f Bitmask of the climates
* @note the 0x80 in parameter b sets the "is carriage bit"
*/
-#define MW(a, b, c, d, e, f) { a, b | 0x80, c, d, e, f, 0, 8, 0, 0 }
+#define MW(a, b, c, d, e, f) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, b | 0x80, c, d, e, f, 0, 8, 0, 0 }
// Rail types
// R = Conventional railway