summaryrefslogtreecommitdiff
path: root/newgrf_callbacks.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-02 21:43:47 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-02 21:43:47 +0000
commit6c3cc7fd16c92c752450c64ec25e04c68fd08db3 (patch)
tree0958f8fee6faaca47b93aeacaf65259a216e8669 /newgrf_callbacks.h
parenta38c8605b09e272d9def47b163ecf4220b94bad0 (diff)
downloadopenttd-6c3cc7fd16c92c752450c64ec25e04c68fd08db3.tar.xz
(svn r4703) - NewGRF: add support for callback 0x1D, "can wagon be attached". This can be used to disallow freight wagons to be placed in passenger trains, along with other uses.
Diffstat (limited to 'newgrf_callbacks.h')
-rw-r--r--newgrf_callbacks.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/newgrf_callbacks.h b/newgrf_callbacks.h
index 0d591067b..24a697395 100644
--- a/newgrf_callbacks.h
+++ b/newgrf_callbacks.h
@@ -25,6 +25,8 @@ enum CallbackID {
CBID_TRAIN_ARTIC_ENGINE = 0x16,
+ CBID_TRAIN_ALLOW_WAGON_ATTACH = 0x1D,
+
/* This callback is called from vehicle purchase lists. It returns a value to be
* used as a custom string ID in the 0xD000 range. */
CBID_VEHICLE_ADDITIONAL_TEXT = 0x23,