summaryrefslogtreecommitdiff
path: root/src/newgrf_callbacks.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-11-08 17:26:13 +0000
committerfrosch <frosch@openttd.org>2011-11-08 17:26:13 +0000
commitb98c7763de42eda4b3d19604bc3f33452b9b05e4 (patch)
tree3a0092e76fa25fd7d025cefe8e105875b99c5c8f /src/newgrf_callbacks.h
parentb374b92bfb06745d21701d398bb0c78a395498b4 (diff)
downloadopenttd-b98c7763de42eda4b3d19604bc3f33452b9b05e4.tar.xz
(svn r23146) -Change: [NewGRF v8] Make callback 22 return a probability to use instead of property 18.
Diffstat (limited to 'src/newgrf_callbacks.h')
-rw-r--r--src/newgrf_callbacks.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_callbacks.h b/src/newgrf_callbacks.h
index cce00151f..1cc608121 100644
--- a/src/newgrf_callbacks.h
+++ b/src/newgrf_callbacks.h
@@ -85,8 +85,8 @@ enum CallbackID {
/** Called periodically to determine if a house should be destroyed. */
CBID_HOUSE_DESTRUCTION = 0x21, // 8 bit callback
- /** Called to determine if the given industry type is available */
- CBID_INDUSTRY_AVAILABLE = 0x22, // 15 bit callback
+ /** Called to determine if the given industry type is available. For grf version >= 8 also a probability can be returned. */
+ CBID_INDUSTRY_PROBABILITY = 0x22, // 15 bit callback
/**
* This callback is called from vehicle purchase lists. It returns a value to be
@@ -341,7 +341,7 @@ enum CargoCallbackMask {
* Callback masks for Industries
*/
enum IndustryCallbackMask {
- CBM_IND_AVAILABLE = 0, ///< industry availability callback
+ CBM_IND_PROBABILITY = 0, ///< industry availability/probability callback
CBM_IND_PRODUCTION_CARGO_ARRIVAL = 1, ///< call production callback when cargo arrives at the industry
CBM_IND_PRODUCTION_256_TICKS = 2, ///< call production callback every 256 ticks
CBM_IND_LOCATION = 3, ///< check industry construction on given area