summaryrefslogtreecommitdiff
path: root/table/engines.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-07-20 22:02:58 +0000
committercelestar <celestar@openttd.org>2005-07-20 22:02:58 +0000
commit18a93cca3d4c590949015ff56e34d8906c60199a (patch)
tree0116afc35d1c231116095467d18c2295cbffa8f1 /table/engines.h
parent030c37160db989c0c67ab3817381787e6c8d8d20 (diff)
downloadopenttd-18a93cca3d4c590949015ff56e34d8906c60199a.tar.xz
(svn r2657) -Codechange: The available railtypes per player are now a bitmask, so
that railtypes do not be in ascending order of appearance. Allows easier implementation or more railtypes
Diffstat (limited to 'table/engines.h')
-rw-r--r--table/engines.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/table/engines.h b/table/engines.h
index f329aea1f..23b0daf57 100644
--- a/table/engines.h
+++ b/table/engines.h
@@ -9,9 +9,18 @@
/** Writes the properties of a vehicle into the EngineInfo struct.
* @see EngineInfo
+ * @param a Introduction date
+ * @param e Rail Type of the vehicle
+ * @param f Bitmask of the climates
*/
-
#define MK(a,b,c,d,e,f) {a,b,c,d,((e)<<4)|(f)}
+/** Writes the properties of a train carriage into the EngineInfo struct.
+ * @see EngineInfo
+ * @param a Introduction date
+ * @param e Rail Type of the vehicle
+ * @param f Bitmask of the climates
+ * @note the 0x80 in parameter b sets the "is carriage bit"
+ */
#define MW(a,b,c,d,e,f) {a,b|0x80,c,d,((e)<<4)|(f)}
EngineInfo _engine_info[TOTAL_NUM_ENGINES] = {