From b98c7763de42eda4b3d19604bc3f33452b9b05e4 Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 8 Nov 2011 17:26:13 +0000 Subject: (svn r23146) -Change: [NewGRF v8] Make callback 22 return a probability to use instead of property 18. --- src/newgrf_callbacks.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/newgrf_callbacks.h') 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 -- cgit v1.2.3-54-g00ecf