(svn r16894) -Codechange: Add [Specialised]Vehicle::Last().

This commit is contained in:
frosch
2009-07-20 19:58:33 +00:00
parent a591dc6c8c
commit fec6129cd1
7 changed files with 42 additions and 24 deletions

View File

@@ -453,18 +453,6 @@ void InitializeVehicles()
ResetVehiclePosHash();
}
Vehicle *GetLastVehicleInChain(Vehicle *v)
{
while (v->Next() != NULL) v = v->Next();
return v;
}
const Vehicle *GetLastVehicleInChain(const Vehicle *v)
{
while (v->Next() != NULL) v = v->Next();
return v;
}
uint CountVehiclesInChain(const Vehicle *v)
{
uint count = 0;