summaryrefslogtreecommitdiff
path: root/src/newgrf_callbacks.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-04-18 18:37:40 +0000
committerpeter1138 <peter1138@openttd.org>2007-04-18 18:37:40 +0000
commit41cf2fa69b8ff60f1b1633b68f47434075d00d75 (patch)
tree5372bc57b04717216dbc5a757c02510f0577042d /src/newgrf_callbacks.h
parentaa284fd531a9beee460c6c04a51d3738c2e3a19e (diff)
downloadopenttd-41cf2fa69b8ff60f1b1633b68f47434075d00d75.tar.xz
(svn r9671) -Codechange: Implement NewGRF callback 36, which allows changing of various properties which were previously static. Vehicle max speed and train power/te/running costs are adjustable.
Diffstat (limited to 'src/newgrf_callbacks.h')
-rw-r--r--src/newgrf_callbacks.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newgrf_callbacks.h b/src/newgrf_callbacks.h
index afdead10e..05327ea88 100644
--- a/src/newgrf_callbacks.h
+++ b/src/newgrf_callbacks.h
@@ -133,6 +133,10 @@ enum CallbackID {
/* Called monthly on production changes, so it can be adjusted more frequently */
CBID_INDUSTRY_MONTHLYPROD_CHANGE= 0x35, // not yet implemented
+ /* Called to modify various vehicle properties. Callback parameter 1
+ * specifies the property index, as used in Action 0, to change. */
+ CBID_VEHICLE_MODIFY_PROPERTY = 0x36,
+
/* Called to determine text to display after cargo name */
CBID_INDUSTRY_CARGO_SUFFIX = 0x37, // not yet implemented