equal
deleted
inserted
replaced
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; |