diff options
author | michi_cc <michi_cc@openttd.org> | 2011-07-11 16:32:19 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2011-07-11 16:32:19 +0000 |
commit | 206ff68e65b1a679e96f5064e3595a183327ef6b (patch) | |
tree | b8e692a54a0d9cf28150a6e2efb1a3c78ceff8b3 /src/newgrf_commons.h | |
parent | 1e855be4924d113d1e1eefd6345f174a86a9ef0b (diff) | |
download | openttd-206ff68e65b1a679e96f5064e3595a183327ef6b.tar.xz |
(svn r22656) -Codechange: Deduplicate the custom error message of the industry shape and location callbacks.
Diffstat (limited to 'src/newgrf_commons.h')
-rw-r--r-- | src/newgrf_commons.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf_commons.h b/src/newgrf_commons.h index 52622a44d..f1977b252 100644 --- a/src/newgrf_commons.h +++ b/src/newgrf_commons.h @@ -19,6 +19,7 @@ #include "sprite.h" #include "core/alloc_type.hpp" #include "core/smallvec_type.hpp" +#include "command_type.h" /** Context for tile accesses */ enum TileContext { @@ -267,6 +268,7 @@ extern ObjectOverrideManager _object_mngr; uint32 GetTerrainType(TileIndex tile, TileContext context = TCX_NORMAL); TileIndex GetNearbyTile(byte parameter, TileIndex tile, bool signed_offsets = true); uint32 GetNearbyTileInformation(TileIndex tile); +CommandCost GetErrorMessageFromLocationCallbackResult(uint16 cb_res, uint32 grfid, StringID default_error); /** * Data related to the handling of grf files. |