summaryrefslogtreecommitdiff
path: root/src/table/engines.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-01-21 19:00:31 +0000
committertron <tron@openttd.org>2007-01-21 19:00:31 +0000
commit8ac3272e8598527778f8afdcf2f690cb2a5518c5 (patch)
tree848589ffb53e5819f3f6977d3062bd7fe33abd47 /src/table/engines.h
parentfb8b0557f9e101515acc71a4a2d8bc709cfe733d (diff)
downloadopenttd-8ac3272e8598527778f8afdcf2f690cb2a5518c5.tar.xz
(svn r8321) -Fix
Reduce the size of EngineInfo (from 28 to 24 bytes) by moving one of its attributes
Diffstat (limited to 'src/table/engines.h')
-rw-r--r--src/table/engines.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/table/engines.h b/src/table/engines.h
index 0093a02b6..4e481974e 100644
--- a/src/table/engines.h
+++ b/src/table/engines.h
@@ -15,26 +15,26 @@
* @param e Bitmask of the climates
* @note the 5 between d and e is the load amount
*/
-#define MK(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, b, c, d, 5, e, 0, 8, 0, 0 }
+#define MK(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 5, e, 0, 8, 0, 0 }
/** Writes the properties of a train carriage into the EngineInfo struct.
* @see MK
* @note the 0x80 in parameter b sets the "is carriage bit"
* @note the 5 between d and e is the load amount
*/
-#define MW(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, b | 0x80, c, d, 5, e, 0, 8, 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 }
/** Writes the properties of a ship into the EngineInfo struct.
* @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, b, c, d, 10, e, 0, 8, 0, 0 }
+#define MS(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 10, e, 0, 8, 0, 0 }
/** Writes the properties of an aeroplane into the EngineInfo struct.
* @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, b, c, d, 20, e, 0, 8, 0, 0 }
+#define MA(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 20, e, 0, 8, 0, 0 }
// Climates
// T = Temperate