* Handle Aircraft specific tasks when an Aircraft enters a hangar * @param *v Vehicle that enters the hangar */
| 569 | * @param *v Vehicle that enters the hangar |
| 570 | */ |
| 571 | void HandleAircraftEnterHangar(Aircraft *v) |
| 572 | { |
| 573 | v->subspeed = 0; |
| 574 | v->progress = 0; |
| 575 | |
| 576 | Aircraft *u = v->Next(); |
| 577 | u->vehstatus.Set(VehState::Hidden); |
| 578 | u = u->Next(); |
| 579 | if (u != nullptr) { |
| 580 | u->vehstatus.Set(VehState::Hidden); |
| 581 | u->cur_speed = 0; |
| 582 | } |
| 583 | |
| 584 | SetAircraftPosition(v, v->x_pos, v->y_pos, v->z_pos); |
| 585 | } |
| 586 | |
| 587 | static void PlayAircraftSound(const Vehicle *v) |
| 588 | { |
no test coverage detected