src/industry_cmd.cpp
changeset 7978 c74fc8173339
parent 7976 e7b6d94291fc
child 7987 aa9239ef92f6
--- a/src/industry_cmd.cpp	Tue Nov 27 16:02:13 2007 +0000
+++ b/src/industry_cmd.cpp	Tue Nov 27 17:13:49 2007 +0000
@@ -401,7 +401,7 @@
 	}
 
 	if (flags & DC_EXEC) delete i;
-	return CommandCost();
+	return CommandCost(indspec->GetRemovalCost());
 }
 
 static void TransportIndustryGoods(TileIndex tile)
@@ -2227,6 +2227,11 @@
 			)) >> 8;
 }
 
+Money IndustrySpec::GetRemovalCost() const
+{
+	return (_price.remove_house * this->removal_cost_multiplier) >> 8;
+}
+
 static CommandCost TerraformTile_Industry(TileIndex tile, uint32 flags, uint z_new, Slope tileh_new)
 {
 	if (AutoslopeEnabled()) {