diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-12 19:58:06 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-12 19:58:06 +0000 |
commit | 0f7392bd616e0bd256b5ec241ad52d7230bcc454 (patch) | |
tree | f23fb584e594e0c9ff5a9ad650d97c493714078d /src/table/engines.h | |
parent | 74f9be8f2c1dca108b88449e6935c61442cbf829 (diff) | |
download | openttd-0f7392bd616e0bd256b5ec241ad52d7230bcc454.tar.xz |
(svn r11822) -Codechange: Replaced fixed size custom name array. Names are now attached to their object directly and there is
no limit to the amount of names.
-Fix: NewGRF engines could not be renamed.
Diffstat (limited to 'src/table/engines.h')
-rw-r--r-- | src/table/engines.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/table/engines.h b/src/table/engines.h index 761bfad24..e02a4850b 100644 --- a/src/table/engines.h +++ b/src/table/engines.h @@ -17,7 +17,7 @@ * @note the 0x80 in parameter b sets the "is carriage bit" * @note the 5 between d and e is the load amount */ -#define MK(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 5, e, 0, 8, 0, 0, 0 } +#define MK(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 5, e, 0, 8, 0, 0, 0, STR_EMPTY } /** Writes the properties of a train carriage into the EngineInfo struct. * @param a Introduction date @@ -28,7 +28,7 @@ * @see MK * @note the 5 between d and e is the load amount */ -#define MW(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b | 0x80, 5, e, 0, 8, 0, 0, 0 } +#define MW(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b | 0x80, 5, e, 0, 8, 0, 0, 0, STR_EMPTY } /** Writes the properties of a ship into the EngineInfo struct. * @param a Introduction date @@ -39,7 +39,7 @@ * @see MK * @note the 10 between d and e is the load amount */ -#define MS(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 10, e, 0, 8, 0, 0, 0 } +#define MS(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 10, e, 0, 8, 0, 0, 0, STR_EMPTY } /** Writes the properties of an aeroplane into the EngineInfo struct. * @param a Introduction date @@ -50,7 +50,7 @@ * @see MK * @note the 20 between d and e is the load amount */ -#define MA(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 20, e, 0, 8, 0, 0, 0 } +#define MA(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 20, e, 0, 8, 0, 0, 0, STR_EMPTY } // Climates // T = Temperate |