From d507136e04432c420bbf48bb322c22335bc0dbfa Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 24 Nov 2009 13:15:58 +0000 Subject: (svn r18268) -Feature: [NewGRF] Make price base multipliers related to vehicles only apply to the GRF locally, if it defines engines of that type itself. --- src/ship_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ship_cmd.cpp') diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index fc579fc48..27049a78f 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -161,7 +161,7 @@ Money Ship::GetRunningCost() const { const Engine *e = Engine::Get(this->engine_type); uint cost_factor = GetVehicleProperty(this, PROP_SHIP_RUNNING_COST_FACTOR, e->u.ship.running_cost); - return GetPrice(PR_RUNNING_SHIP, cost_factor); + return GetPrice(PR_RUNNING_SHIP, cost_factor, e->grffile); } void Ship::OnNewDay() -- cgit v1.2.3-54-g00ecf