(svn r22656) -Codechange: Deduplicate the custom error message of the industry shape and location callbacks.

This commit is contained in:
michi_cc
2011-07-11 16:32:19 +00:00
parent b7d1196093
commit b31cf48c3a
4 changed files with 32 additions and 26 deletions

View File

@@ -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.