Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh the screen when aborting world generation #38286

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
wapcaplet committed Feb 24, 2020
commit 81c09905bb0da9333a6b667c48a616242e6d5382
2 changes: 2 additions & 0 deletions src/worldfactory.cpp
Original file line number Diff line number Diff line change
@@ -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();
}
}
}