vehicle.c
changeset 5216 d581e4db95b6
parent 5211 651c9272ad22
child 5247 c3eece01af11
equal deleted inserted replaced
5215:439d5ca71311 5216:d581e4db95b6
    93 	 * TODO - This is just a temporary stage, this will be removed. */
    93 	 * TODO - This is just a temporary stage, this will be removed. */
    94 	for (v = GetVehicle(start_item); v != NULL; v = (v->index + 1U < GetVehiclePoolSize()) ? GetVehicle(v->index + 1) : NULL) v->index = start_item++;
    94 	for (v = GetVehicle(start_item); v != NULL; v = (v->index + 1U < GetVehiclePoolSize()) ? GetVehicle(v->index + 1) : NULL) v->index = start_item++;
    95 }
    95 }
    96 
    96 
    97 /* Initialize the vehicle-pool */
    97 /* Initialize the vehicle-pool */
    98 DEFINE_POOL(Vehicle, Vehicle, VehiclePoolNewBlock, NULL)
    98 DEFINE_OLD_POOL(Vehicle, Vehicle, VehiclePoolNewBlock, NULL)
    99 
    99 
   100 void VehicleServiceInDepot(Vehicle *v)
   100 void VehicleServiceInDepot(Vehicle *v)
   101 {
   101 {
   102 	v->date_of_last_service = _date;
   102 	v->date_of_last_service = _date;
   103 	v->breakdowns_since_last_service = 0;
   103 	v->breakdowns_since_last_service = 0;