equal
deleted
inserted
replaced
6 * 1 tick is approximately 30 ms. |
6 * 1 tick is approximately 30 ms. |
7 * 1 day is thus about 2 seconds (74 * 30 = 2220) on a machine that can run OpenTTD normally |
7 * 1 day is thus about 2 seconds (74 * 30 = 2220) on a machine that can run OpenTTD normally |
8 */ |
8 */ |
9 #define DAY_TICKS 74 |
9 #define DAY_TICKS 74 |
10 |
10 |
|
11 /* |
|
12 * ORIGINAL_BASE_YEAR, ORIGINAL_MAX_YEAR and DAYS_TILL_ORIGINAL_BASE_YEAR are |
|
13 * primarily used for loading newgrf and savegame data and returning some |
|
14 * newgrf (callback) functions that were in the original (TTD) inherited |
|
15 * format, where '_date == 0' meant that it was 1920-01-01. |
|
16 */ |
|
17 |
|
18 /** The minimum starting year/base year of the original TTD */ |
|
19 #define ORIGINAL_BASE_YEAR 1920 |
|
20 /** The maximum year of the original TTD */ |
|
21 #define ORIGINAL_MAX_YEAR 2090 |
|
22 |
|
23 /** |
|
24 * The offset in days from the '_date == 0' till |
|
25 * 'ConvertYMDToDate(ORIGINAL_BASE_YEAR, 0, 1)' |
|
26 */ |
|
27 #define DAYS_TILL_ORIGINAL_BASE_YEAR 0 |
|
28 |
|
29 /* Temporary value to make transition to full past 2090 easier/more clear */ |
11 #define BASE_YEAR 1920 |
30 #define BASE_YEAR 1920 |
|
31 |
|
32 /* The absolute minimum & maximum years in OTTD */ |
12 #define MIN_YEAR 1920 |
33 #define MIN_YEAR 1920 |
13 #define MAX_YEAR 2090 |
34 #define MAX_YEAR 2090 |
14 |
35 |
15 /* Year and Date are defined elsewhere */ |
36 /* Year and Date are defined elsewhere */ |
16 typedef uint8 Month; |
37 typedef uint8 Month; |