diff options
author | rubidium <rubidium@openttd.org> | 2010-08-10 15:54:53 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-10 15:54:53 +0000 |
commit | 29b489a055e12033b006410d5e67a493c64ccfe2 (patch) | |
tree | a0e8bee3d26a69341484ffe0461819e98fe1bf6f /src/engine.cpp | |
parent | 3d21fb44aae10d627cf24c7e42485c8f3a33ed42 (diff) | |
download | openttd-29b489a055e12033b006410d5e67a493c64ccfe2.tar.xz |
(svn r20437) -Codechange: lets Engines use GRFFilePropsBase as well
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 7809af616..e03d81cbf 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -74,7 +74,7 @@ Engine::Engine() : Engine::Engine(VehicleType type, EngineID base) { this->type = type; - this->internal_id = base; + this->grf_prop.local_id = base; this->list_position = base; /* Check if this base engine is within the original engine data range */ @@ -241,7 +241,7 @@ Money Engine::GetRunningCost() const default: NOT_REACHED(); } - return GetPrice(base_price, cost_factor, this->grffile, -8); + return GetPrice(base_price, cost_factor, this->grf_prop.grffile, -8); } /** @@ -281,7 +281,7 @@ Money Engine::GetCost() const default: NOT_REACHED(); } - return GetPrice(base_price, cost_factor, this->grffile, -8); + return GetPrice(base_price, cost_factor, this->grf_prop.grffile, -8); } /** |