* Returns to the previous screen. * @param action Pointer to an action. */
| 605 | * @param action Pointer to an action. |
| 606 | */ |
| 607 | void SoldierInfoState::btnOkClick(Action *) |
| 608 | { |
| 609 | _game->popState(); |
| 610 | if (_game->getSavedGame()->getMonthsPassed() > -1 && Options::storageLimitsEnforced && _base != 0 && _base->storesOverfull()) |
| 611 | { |
| 612 | _game->pushState(new SellState(_game, _base)); |
| 613 | _game->pushState(new ErrorMessageState(_game, tr("STR_STORAGE_EXCEEDED").arg(_base->getName()).c_str(), _palette, Palette::blockOffset(15)+1, "BACK01.SCR", 0)); |
| 614 | } |
| 615 | } |
| 616 | |
| 617 | /** |
| 618 | * Goes to the previous soldier. |
nothing calls this directly
no test coverage detected