Skip to content

Commit

Permalink
prevent the default backgrounds from being added to templates and ran…
Browse files Browse the repository at this point in the history
…dom scenarios (CleverRaven#68013)

* modify default_backgrounds

* modify it again goddamit

fix
  • Loading branch information
KeremBabaG authored Sep 5, 2023
1 parent fe7c852 commit 35b4e10
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/newcharacter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -683,9 +683,11 @@ bool avatar::create( character_type type, const std::string &tempname )
pool = pool_type::MULTI_POOL;
}

bool default_backgrounds = false;
switch( type ) {
case character_type::CUSTOM:
randomize_cosmetics();
default_backgrounds = true;
break;
case character_type::RANDOM:
//random scenario, default name if exist
Expand Down Expand Up @@ -715,7 +717,11 @@ bool avatar::create( character_type type, const std::string &tempname )
break;
}

add_default_background();
if( default_backgrounds )
//to check which starts add the basic adult backgrounds
{
add_default_background();
}

auto nameExists = [&]( const std::string & name ) {
return world_generator->active_world->save_exists( save_t::from_save_id( name ) ) &&
Expand Down

0 comments on commit 35b4e10

Please sign in to comment.