(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.

This commit is contained in:
frosch
2009-11-24 13:15:58 +00:00
parent ea0fd4656a
commit f60a437d36
12 changed files with 186 additions and 64 deletions

View File

@@ -232,7 +232,7 @@ Money Engine::GetRunningCost() const
default: NOT_REACHED();
}
return GetPrice(base_price, cost_factor, -8);
return GetPrice(base_price, cost_factor, this->grffile, -8);
}
Money Engine::GetCost() const
@@ -268,7 +268,7 @@ Money Engine::GetCost() const
default: NOT_REACHED();
}
return GetPrice(base_price, cost_factor, -8);
return GetPrice(base_price, cost_factor, this->grffile, -8);
}
/**