(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.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user