* Updates the selected body part. * If there is a wounded body part, selects that. * Otherwise does not change the selected part. */
| 127 | * Otherwise does not change the selected part. |
| 128 | */ |
| 129 | void MedikitView::updateSelectedPart() |
| 130 | { |
| 131 | for (int i = 0; i < 6; ++i) |
| 132 | { |
| 133 | if (_unit->getFatalWound(i)) |
| 134 | { |
| 135 | _selectedPart = i; |
| 136 | break; |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | } |
no test coverage detected