src/newgrf_industrytiles.cpp
changeset 7216 2bb13ff061b1
parent 7212 5d99296fb545
child 7229 a5f262f6df1b
--- a/src/newgrf_industrytiles.cpp	Mon Jul 09 19:38:12 2007 +0000
+++ b/src/newgrf_industrytiles.cpp	Mon Jul 09 20:08:25 2007 +0000
@@ -229,9 +229,13 @@
 	}
 }
 
-bool PerformIndustryTileSlopeCheck(TileIndex tile, const IndustryTileSpec *its, IndustryGfx gfx)
+bool PerformIndustryTileSlopeCheck(TileIndex tile, const IndustryTileSpec *its, IndustryType type, IndustryGfx gfx)
 {
-	uint16 callback_res = GetIndustryTileCallback(CBID_INDTILE_SHAPE_CHECK, 0, 0, gfx, NULL, tile);
+	Industry ind;
+	ind.xy = 0;
+	ind.type = type;
+
+	uint16 callback_res = GetIndustryTileCallback(CBID_INDTILE_SHAPE_CHECK, 0, 0, gfx, &ind, tile);
 	if (its->grf_prop.grffile->grf_version < 7) {
 		return callback_res != 0;
 	}