Skip to content

Commit

Permalink
Warn about problems related to creating a new character in an existin…
Browse files Browse the repository at this point in the history
…g world.
  • Loading branch information
kevingranade committed Aug 22, 2024
1 parent 4180cc3 commit cd6ffee
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,13 @@ bool main_menu::new_character_tab()
if( world == nullptr ) {
continue;
}
if( !world->world_saves.empty() ) {
if( !query_yn(
_( "Many game features will not work correctly with multiple characters in the same world. Create a new character anyway?" ) ) ) {
return false;
}
}

world_generator->set_active_world( world );
try {
g->setup();
Expand Down Expand Up @@ -980,6 +987,12 @@ bool main_menu::new_character_tab()
if( world == nullptr ) {
return false;
}
if( !world->world_saves.empty() ) {
if( !query_yn(
_( "Many game features will not work correctly with multiple characters in the same world. Create a new character anyway?" ) ) ) {
return false;
}
}
world_generator->set_active_world( world );
try {
g->setup();
Expand Down

0 comments on commit cd6ffee

Please sign in to comment.