diff options
author | frosch <frosch@openttd.org> | 2014-01-12 18:00:19 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-01-12 18:00:19 +0000 |
commit | 73c6565cf269608092d119e353df522e97c5db7a (patch) | |
tree | 3c238ae76ed718acac990686636a6403f1f255b8 /src/newgrf_commons.h | |
parent | 477c15383d00caaf62bc554d6ff8890adebce071 (diff) | |
download | openttd-73c6565cf269608092d119e353df522e97c5db7a.tar.xz |
(svn r26240) -Codechange: Pass the GRFFile to GetErrorMessageFromLocationCallbackResult instead of the GRFID.
Diffstat (limited to 'src/newgrf_commons.h')
-rw-r--r-- | src/newgrf_commons.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/newgrf_commons.h b/src/newgrf_commons.h index 3e8434748..a9cc50659 100644 --- a/src/newgrf_commons.h +++ b/src/newgrf_commons.h @@ -22,6 +22,8 @@ #include "direction_type.h" #include "company_type.h" +struct GRFFile; + /** Context for tile accesses */ enum TileContext { TCX_NORMAL, ///< Nothing special. @@ -297,7 +299,7 @@ uint32 GetTerrainType(TileIndex tile, TileContext context = TCX_NORMAL); TileIndex GetNearbyTile(byte parameter, TileIndex tile, bool signed_offsets = true, Axis axis = INVALID_AXIS); uint32 GetNearbyTileInformation(TileIndex tile, bool grf_version8); uint32 GetCompanyInfo(CompanyID owner, const struct Livery *l = NULL); -CommandCost GetErrorMessageFromLocationCallbackResult(uint16 cb_res, uint32 grfid, StringID default_error); +CommandCost GetErrorMessageFromLocationCallbackResult(uint16 cb_res, const GRFFile *grffile, StringID default_error); void ErrorUnknownCallbackResult(uint32 grfid, uint16 cbid, uint16 cb_res); bool ConvertBooleanCallback(const struct GRFFile *grffile, uint16 cbid, uint16 cb_res); |