summaryrefslogtreecommitdiff
path: root/vehicle.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-20 18:40:57 +0000
committerrubidium <rubidium@openttd.org>2006-08-20 18:40:57 +0000
commit28a08437075be6495df383ca854f6026965a8b8e (patch)
tree146ad5e3c72a49bcc04fae58e750b972f063d8c2 /vehicle.h
parent5e4667624e5093ea2b83bcdf63d836d1a34d46bc (diff)
downloadopenttd-28a08437075be6495df383ca854f6026965a8b8e.tar.xz
(svn r5999) -Feature: change the original date format to a 32 bits format based at the year 0.
The game date subsystem now allows someone to start in the year 0 and continue up to the year 5 000 000. However, you currently cannot build anything before 1920 as there is no newgrf support for dates before 1920 or after 2090 yet.
Diffstat (limited to 'vehicle.h')
-rw-r--r--vehicle.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/vehicle.h b/vehicle.h
index 26750e35f..86c9ffa87 100644
--- a/vehicle.h
+++ b/vehicle.h
@@ -208,8 +208,8 @@ struct Vehicle {
VehicleID next_hash;
// Related to age and service time
- uint16 age; // Age in days
- uint16 max_age; // Maximum age
+ Date age; // Age in days
+ Date max_age; // Maximum age
Date date_of_last_service;
Date service_interval;
uint16 reliability;
@@ -218,7 +218,7 @@ struct Vehicle {
byte breakdown_delay;
byte breakdowns_since_last_service;
byte breakdown_chance;
- byte build_year;
+ Year build_year;
bool leave_depot_instantly; // NOSAVE: stores if the vehicle needs to leave the depot it just entered. Used by autoreplace