diff options
author | peter1138 <peter1138@openttd.org> | 2006-08-09 21:11:45 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-08-09 21:11:45 +0000 |
commit | 08ae2cf6e57628e1ca3b7c2c20f405001a497417 (patch) | |
tree | bf0463cbcfcf45f33986574818350054e36d87c7 /newgrf_callbacks.h | |
parent | e0d82233553a0b808a0353412716c5b8887d2cab (diff) | |
download | openttd-08ae2cf6e57628e1ca3b7c2c20f405001a497417.tar.xz |
(svn r5822) - NewGRF: add support for callback 31, vehicle start/stop check. This allows a set to disallow a vehicle from being started, i.e. to not be able to leave the depot. This is almost a partner to callback 1D.
Diffstat (limited to 'newgrf_callbacks.h')
-rw-r--r-- | newgrf_callbacks.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newgrf_callbacks.h b/newgrf_callbacks.h index 62ce8ac96..d7a91c04b 100644 --- a/newgrf_callbacks.h +++ b/newgrf_callbacks.h @@ -41,6 +41,10 @@ enum CallbackID { /* Called when building a station to customize the tile layout */ CBID_STATION_TILE_LAYOUT = 0x24, + + /* Called when the player (or AI) tries to start or stop a vehicle. Mainly + * used for preventing a vehicle from leaving the depot. */ + CBID_VEHICLE_START_STOP_CHECK = 0x31, }; /** |