diff options
author | alberth <alberth@openttd.org> | 2010-02-21 17:01:23 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-02-21 17:01:23 +0000 |
commit | 82a4d532b6395172537577974f18e4b61aa99bf4 (patch) | |
tree | 2c310157d0b313a84e77b82232681d7318818744 /src/newgrf_industries.h | |
parent | c4f67de69c84d4bc500d006af25fccdf0e4569af (diff) | |
download | openttd-82a4d532b6395172537577974f18e4b61aa99bf4.tar.xz |
(svn r19185) -Codechange: Return succeeded or failed CommandCost from CheckIfCallBackAllowsCreation().
Diffstat (limited to 'src/newgrf_industries.h')
-rw-r--r-- | src/newgrf_industries.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf_industries.h b/src/newgrf_industries.h index 3013f9170..2d103f99b 100644 --- a/src/newgrf_industries.h +++ b/src/newgrf_industries.h @@ -12,6 +12,7 @@ #ifndef NEWGRF_INDUSTRIES_H #define NEWGRF_INDUSTRIES_H +#include "command_type.h" #include "newgrf_spritegroup.h" /** When should the industry(tile) be triggered for random bits? */ @@ -36,7 +37,7 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par uint16 GetIndustryCallback(CallbackID callback, uint32 param1, uint32 param2, Industry *industry, IndustryType type, TileIndex tile); uint32 GetIndustryIDAtOffset(TileIndex new_tile, const Industry *i, uint32 cur_grfid); void IndustryProductionCallback(Industry *ind, int reason); -bool CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uint itspec_index, uint32 seed); +CommandCost CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uint layout, uint32 seed); bool CheckIfCallBackAllowsAvailability(IndustryType type, IndustryAvailabilityCallType creation_type); IndustryType MapNewGRFIndustryType(IndustryType grf_type, uint32 grf_id); |