* Callback from PlaceStartFacilityState. * Removes placed facility from the list. */
| 107 | * Removes placed facility from the list. |
| 108 | */ |
| 109 | void SelectStartFacilityState::facilityBuilt() |
| 110 | { |
| 111 | _facilities.erase(_facilities.begin() + _lstFacilities->getSelectedRow()); |
| 112 | if (_facilities.empty()) |
| 113 | { |
| 114 | _game->popState(); |
| 115 | _game->popState(); // return to geoscape, force timer to start. |
| 116 | } |
| 117 | else |
| 118 | { |
| 119 | populateBuildList(); |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | } |
no test coverage detected