* Aborts unit walking. */
| 460 | * Aborts unit walking. |
| 461 | */ |
| 462 | void UnitWalkBState::cancel() |
| 463 | { |
| 464 | if (_parent->getSave()->getSide() == FACTION_PLAYER && _parent->getPanicHandled()) |
| 465 | _pf->abortPath(); |
| 466 | } |
| 467 | |
| 468 | /** |
| 469 | * Handles some calculations when the path is finished. |
nothing calls this directly
no test coverage detected