(svn r6646) -Codechange: [vehicle list window] Cleaned up the drawing code

This moved a few of the strings and sprites a few pixels. Hopefully this will work out ok.
This commit is contained in:
bjarni
2006-10-05 08:15:51 +00:00
parent 7606b2707d
commit ff6f83b56c
6 changed files with 68 additions and 91 deletions

View File

@@ -2439,6 +2439,18 @@ int32 SendAllVehiclesToDepot(byte type, uint32 flags, bool service, PlayerID own
return (flags & DC_EXEC) ? 0 : CMD_ERROR;
}
bool IsVehicleInDepot(const Vehicle *v)
{
switch (v->type) {
case VEH_Train: return CheckTrainInDepot(v, false) != -1;
case VEH_Road: return IsRoadVehInDepot(v);
case VEH_Ship: return IsShipInDepot(v);
case VEH_Aircraft: return IsAircraftInHangar(v);
default: NOT_REACHED();
}
return false;
}
void VehicleEnterDepot(Vehicle *v)
{
switch (v->type) {