summaryrefslogtreecommitdiff
path: root/newgrf_callbacks.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-08-09 21:11:45 +0000
committerpeter1138 <peter1138@openttd.org>2006-08-09 21:11:45 +0000
commit8048e8c5bd4ab015715fbdb616c3b7306b396ff0 (patch)
treebf0463cbcfcf45f33986574818350054e36d87c7 /newgrf_callbacks.h
parentacaa043d6f9c45e5d0681dbd1a9f3ddafc4b9b2d (diff)
downloadopenttd-8048e8c5bd4ab015715fbdb616c3b7306b396ff0.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.h4
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,
};
/**