summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-16 10:10:12 +0000
committerrubidium <rubidium@openttd.org>2009-09-16 10:10:12 +0000
commit962598451b7a365614eb82c55650a6f632c3bd9a (patch)
tree52c1687884b7adbd90bf8ae91e83ffe9f6de37d6 /src
parentaf457fc9fe53686de6210c0bf8ec488993e22f56 (diff)
downloadopenttd-962598451b7a365614eb82c55650a6f632c3bd9a.tar.xz
(svn r17553) -Update: some documentation about the callbacks
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_callbacks.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/newgrf_callbacks.h b/src/newgrf_callbacks.h
index 46bead15b..5c4eb0f35 100644
--- a/src/newgrf_callbacks.h
+++ b/src/newgrf_callbacks.h
@@ -18,9 +18,6 @@
* bit is set in the callback flags/trigger for a vehicle, house,
* industry, etc.
* Names are formatted as CBID_<CLASS>_<CALLBACK>
- *
- * @note Do not forget to add 15 bits callbacks to the switch in
- * newgrf_spritegroup.cpp (search for "15 bits callback").
*/
enum CallbackID {
/** Set when using the callback resolve system, but not to resolve a callback. */
@@ -144,7 +141,7 @@ enum CallbackID {
CBID_VEHICLE_SOUND_EFFECT = 0x33, // 15 bit callback
/** Return the vehicles this given vehicle can be "upgraded" to. */
- CBID_VEHICLE_AUTOREPLACE_SELECTION = 0x34, // 15 bit callback
+ CBID_VEHICLE_AUTOREPLACE_SELECTION = 0x34, // 15 bit callback, not implemented
/** Called monthly on production changes, so it can be adjusted more frequently */
CBID_INDUSTRY_MONTHLYPROD_CHANGE = 0x35, // 15 bit callback
@@ -228,7 +225,7 @@ enum VehicleCallbackMask {
CBM_VEHICLE_LENGTH = 1, ///< Vehicle length (trains and road vehicles)
CBM_VEHICLE_LOAD_AMOUNT = 2, ///< Load amount
CBM_VEHICLE_REFIT_CAPACITY = 3, ///< Cargo capacity after refit
- CBM_VEHICLE_ARTIC_ENGINE = 4, ///< Add articulated engines (trains only)
+ CBM_VEHICLE_ARTIC_ENGINE = 4, ///< Add articulated engines (trains and road vehicles)
CBM_VEHICLE_CARGO_SUFFIX = 5, ///< Show suffix after cargo name
CBM_VEHICLE_COLOUR_REMAP = 6, ///< Change colour mapping of vehicle
CBM_VEHICLE_SOUND_EFFECT = 7, ///< Vehicle uses custom sound effects
@@ -266,7 +263,7 @@ enum HouseCallbackMask {
* Callback masks for canals.
*/
enum CanalCallbackMask {
- CBM_CANAL_SPRITE_OFFSET = 1, ///< Enable add sprite offset callback
+ CBM_CANAL_SPRITE_OFFSET = 0, ///< Enable add sprite offset callback
};
/**