summaryrefslogtreecommitdiff
path: root/engine.c
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
commite159ada7a2a0367c99e94ee07b1d439e7ffacc0b (patch)
tree33714b71b0f9fc1c73fccdd4b1ed25321adc99fa /engine.c
parent5fb6c9e1cc073ad96d62efc423e87d79d38d435a (diff)
downloadopenttd-e159ada7a2a0367c99e94ee07b1d439e7ffacc0b.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 'engine.c')
-rw-r--r--engine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine.c b/engine.c
index bd7e72a3b..ceaa91fb4 100644
--- a/engine.c
+++ b/engine.c
@@ -6,7 +6,6 @@
#include "functions.h"
#include "table/strings.h"
#include "engine.h"
-#include "table/engines.h"
#include "gfx.h"
#include "player.h"
#include "command.h"
@@ -17,6 +16,7 @@
#include "train.h"
#include "newgrf_cargo.h"
#include "date.h"
+#include "table/engines.h"
EngineInfo _engine_info[TOTAL_NUM_ENGINES];
RailVehicleInfo _rail_vehicle_info[NUM_TRAIN_ENGINES];
@@ -140,7 +140,7 @@ void StartupEngines(void)
Engine *e;
const EngineInfo *ei;
/* Aging of vehicles stops, so account for that when starting late */
- const uint16 aging_date = min(_date, ConvertYMDToDate(YEAR_ENGINE_AGING_STOPS, 0, 1));
+ const Date aging_date = min(_date, ConvertYMDToDate(YEAR_ENGINE_AGING_STOPS, 0, 1));
SetupEngineNames();