1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-13 17:49:10 +00:00

(svn r20437) -Codechange: lets Engines use GRFFilePropsBase as well

This commit is contained in:
rubidium
2010-08-10 15:54:53 +00:00
parent 3d21fb44aa
commit 29b489a055
11 changed files with 48 additions and 43 deletions

View File

@@ -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);
}
/**