* Goes to the Basescape screen. * @param action Pointer to an action. */
| 1824 | * @param action Pointer to an action. |
| 1825 | */ |
| 1826 | void GeoscapeState::btnBasesClick(Action *) |
| 1827 | { |
| 1828 | timerReset(); |
| 1829 | if (!_game->getSavedGame()->getBases()->empty()) |
| 1830 | { |
| 1831 | _game->pushState(new BasescapeState(_game, _game->getSavedGame()->getSelectedBase(), _globe)); |
| 1832 | } |
| 1833 | else |
| 1834 | { |
| 1835 | _game->pushState(new BasescapeState(_game, 0, _globe)); |
| 1836 | } |
| 1837 | } |
| 1838 | |
| 1839 | /** |
| 1840 | * Goes to the Graphs screen. |
nothing calls this directly
no test coverage detected