summaryrefslogtreecommitdiff
path: root/src/newgrf_object.h
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2011-03-05 18:28:10 +0000
committerplanetmaker <planetmaker@openttd.org>2011-03-05 18:28:10 +0000
commit2aa14cc54bc7ab05a84d6f50ee772c6f40fd6099 (patch)
tree06d686a1347b04b0a9ae61bd0fcb47a41e95b143 /src/newgrf_object.h
parentf5a7ad70dc9487d7d9248f07ff42eb9d5ac60736 (diff)
downloadopenttd-2aa14cc54bc7ab05a84d6f50ee772c6f40fd6099.tar.xz
(svn r22204) -Change: Make the base costs for building and demolishing NewObjects also local to the individual NewGRFs
Diffstat (limited to 'src/newgrf_object.h')
-rw-r--r--src/newgrf_object.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_object.h b/src/newgrf_object.h
index 1c023a7a0..243d0f3a3 100644
--- a/src/newgrf_object.h
+++ b/src/newgrf_object.h
@@ -74,13 +74,13 @@ struct ObjectSpec {
* Get the cost for building a structure of this type.
* @return The cost for building.
*/
- Money GetBuildCost() const { return (_price[PR_BUILD_OBJECT] * this->build_cost_multiplier); }
+ Money GetBuildCost() const { return GetPrice(PR_BUILD_OBJECT, this->build_cost_multiplier, this->grf_prop.grffile, 0); }
/**
* Get the cost for clearing a structure of this type.
* @return The cost for clearing.
*/
- Money GetClearCost() const { return (_price[PR_CLEAR_OBJECT] * this->clear_cost_multiplier); }
+ Money GetClearCost() const { return GetPrice(PR_CLEAR_OBJECT, this->clear_cost_multiplier, this->grf_prop.grffile, 0); }
bool IsAvailable() const;
uint Index() const;