(svn r23173) -Codechange: Rename GetVehicleCapacity() to Engine::DetermineCapacity().

This commit is contained in:
frosch
2011-11-09 16:38:50 +00:00
parent f2db3a93b0
commit 3178814a00
9 changed files with 74 additions and 73 deletions

View File

@@ -290,7 +290,7 @@ CommandCost CmdBuildRoadVehicle(TileIndex tile, DoCommandFlag flags, const Engin
/* Call various callbacks after the whole consist has been constructed */
for (RoadVehicle *u = v; u != NULL; u = u->Next()) {
u->cargo_cap = GetVehicleCapacity(u);
u->cargo_cap = u->GetEngine()->DetermineCapacity(u);
v->InvalidateNewGRFCache();
u->InvalidateNewGRFCache();
}