From 81c09905bb0da9333a6b667c48a616242e6d5382 Mon Sep 17 00:00:00 2001 From: Eric Pierce Date: Sun, 23 Feb 2020 18:08:34 -0700 Subject: [PATCH] Refresh the screen when aborting world generation The bottom portion of the world-gen settings was remaining on screen after aborting world generation. This forces catacurses to redraw and avoid artifacts. --- src/worldfactory.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/worldfactory.cpp b/src/worldfactory.cpp index 3957f879c42ea..62c2c1a786622 100644 --- a/src/worldfactory.cpp +++ b/src/worldfactory.cpp @@ -159,6 +159,8 @@ WORLDPTR worldfactory::make_new_world( bool show_prompt, const std::string &worl if( curtab < 0 ) { if( !query_yn( _( "Do you want to abort World Generation?" ) ) ) { curtab = lasttab; + catacurses::clear(); + catacurses::refresh(); } } }