From: <gi...@cr...> - 2012-02-28 21:05:24
|
via eb127b30c542ba4405abb20af62fe2dd79431ca7 (commit) from 2a3aa8409dcb82be84ea38ef7dc8802f0a79dd37 (commit) ----------------------------------------------------------------------- commit eb127b30c542ba4405abb20af62fe2dd79431ca7 Author: Adam Borowski <kil...@an...> Date: Tue Feb 28 22:02:17 2012 +0100 Fix an infinite loop if HUP happens during Stack Five. ----------------------------------------------------------------------- Summary of changes: crawl-ref/source/decks.cc | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc index b9b7640..9c88cc1 100644 --- a/crawl-ref/source/decks.cc +++ b/crawl-ref/source/decks.cc @@ -1130,6 +1130,11 @@ bool deck_stack() _redraw_stacked_cards(draws, selected); } + // If you HUP the game, you lose the opportunity for further + // stacking, but you might have already ordered some, no need + // to destroy that. + else if (c == CK_ESCAPE && crawl_state.seen_hups) + break; // TODO: continue on game restore instead? } redraw_screen(); } -- Dungeon Crawl Stone Soup |