summaryrefslogtreecommitdiff
path: root/src/newgrf_industrytiles.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-05-29 13:08:50 +0000
committerfrosch <frosch@openttd.org>2010-05-29 13:08:50 +0000
commite296eeb20cc0f6f0ff918fb6372e657dc4a44647 (patch)
tree1cf26417d28f61d856e9c2b93ee0cdf254652140 /src/newgrf_industrytiles.cpp
parent0c1add2d1953219d7f408f9090d3835ead8e1b73 (diff)
downloadopenttd-e296eeb20cc0f6f0ff918fb6372e657dc4a44647.tar.xz
(svn r19901) -Add: [NewGRF] Access to industry founder (var A7) during callbacks 28 and 2F. (yexo)
Diffstat (limited to 'src/newgrf_industrytiles.cpp')
-rw-r--r--src/newgrf_industrytiles.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/newgrf_industrytiles.cpp b/src/newgrf_industrytiles.cpp
index c29823855..4ab1d4e91 100644
--- a/src/newgrf_industrytiles.cpp
+++ b/src/newgrf_industrytiles.cpp
@@ -258,9 +258,10 @@ extern bool IsSlopeRefused(Slope current, Slope refused);
* @param gfx Gfx of the tile.
* @param itspec_index Layout.
* @param initial_random_bits Random bits of industry after construction
+ * @param founder Industry founder
* @return Suceeded or failed command.
*/
-CommandCost PerformIndustryTileSlopeCheck(TileIndex ind_base_tile, TileIndex ind_tile, const IndustryTileSpec *its, IndustryType type, IndustryGfx gfx, uint itspec_index, uint16 initial_random_bits)
+CommandCost PerformIndustryTileSlopeCheck(TileIndex ind_base_tile, TileIndex ind_tile, const IndustryTileSpec *its, IndustryType type, IndustryGfx gfx, uint itspec_index, uint16 initial_random_bits, Owner founder)
{
Industry ind;
ind.index = INVALID_INDUSTRY;
@@ -268,6 +269,7 @@ CommandCost PerformIndustryTileSlopeCheck(TileIndex ind_base_tile, TileIndex ind
ind.location.w = 0;
ind.type = type;
ind.random = initial_random_bits;
+ ind.founder = founder;
uint16 callback_res = GetIndustryTileCallback(CBID_INDTILE_SHAPE_CHECK, 0, itspec_index, gfx, &ind, ind_tile);
if (callback_res == CALLBACK_FAILED) {