Mercurial > rinkhals
diff gamelib/engine.py @ 512:b112bcf4d435
Add restore game button to main menu.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Thu, 26 Nov 2009 23:36:20 +0000 |
parents | 393e30ea0165 |
children | 399bb3cb4761 |
line wrap: on
line diff
--- a/gamelib/engine.py Thu Nov 26 23:33:49 2009 +0000 +++ b/gamelib/engine.py Thu Nov 26 23:36:20 2009 +0000 @@ -103,6 +103,10 @@ return DayState(self.game) elif e.key == K_i: return HelpScreenState(self.game) + elif e.type is DO_LOAD_SAVEGAME: + self.game.switch_gameboard(e.gameboard) + e.gameboard.skip_next_start_day() + return DayState(self.game) elif e.type is not QUIT: self.game.main_app.event(e)