| 572 | } |
| 573 | |
| 574 | void CityView::orderMove(Vec3<float> position, bool alternative, bool portal) |
| 575 | { |
| 576 | bool useTeleporter = |
| 577 | alternative && config().getBool("OpenApoc.NewFeature.AllowManualCityTeleporters"); |
| 578 | if (activeTab == uiTabs[1]) |
| 579 | { |
| 580 | if (portal) |
| 581 | { |
| 582 | for (auto &v : this->state->current_city->cityViewSelectedVehicles) |
| 583 | { |
| 584 | if (v && v->owner == this->state->getPlayer()) |
| 585 | { |
| 586 | v->setMission(*state, VehicleMission::gotoPortal(*state, *v, position)); |
| 587 | } |
| 588 | } |
| 589 | } |
| 590 | else |
| 591 | { |
| 592 | state->current_city->groupMove(*state, state->current_city->cityViewSelectedVehicles, |
| 593 | position, useTeleporter); |
| 594 | } |
| 595 | return; |
| 596 | } |
| 597 | } |
| 598 | |
| 599 | void CityView::orderMove(StateRef<Building> building, bool alternative) |
| 600 | { |
nothing calls this directly
no test coverage detected