| 2573 | void AIUnit::AllowGetIn(bool flag) |
| 2574 | { |
| 2575 | _getInAllowed = flag; |
| 2576 | if (!flag) |
| 2577 | { |
| 2578 | AISubgroup* subgrp = GetSubgroup(); |
| 2579 | if (subgrp) |
| 2580 | { |
| 2581 | subgrp->ClearGetInCommands(); |
| 2582 | AIGroup* grp = subgrp->GetGroup(); |
| 2583 | if (grp) |
| 2584 | { |
| 2585 | grp->ClearGetInCommands(this); |
| 2586 | } |
| 2587 | } |
| 2588 | } |
| 2589 | } |
| 2590 | |
| 2591 | void AIUnit::UnassignVehicle() |
| 2592 | { |
| 2593 | if (_vehicleAssigned) |
| 2594 | { |
no test coverage detected