Skip to content

Commit

Permalink
Reset avatar before test
Browse files Browse the repository at this point in the history
  • Loading branch information
RenechCDDA committed Sep 24, 2023
1 parent 350a08a commit c5523af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/faction_camp_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ static const zone_type_id zone_type_CAMP_STORAGE( "CAMP_STORAGE" );

TEST_CASE( "camp_calorie_counting", "[camp]" )
{
clear_avatar();
clear_map();
map &m = get_map();
const tripoint zone_loc = m.getabs( tripoint{ 5, 5, 0 } );
mapgen_place_zone( zone_loc, zone_loc, zone_type_CAMP_FOOD, your_fac, {},
"food" );
mapgen_place_zone( zone_loc, zone_loc, zone_type_CAMP_STORAGE, your_fac, {},
"storage" );
get_player_character().setpos( zone_loc );
faction *camp_faction = get_player_character().get_faction();
const tripoint_abs_omt this_omt = project_to<coords::omt>( m.getglobal( zone_loc ) );
m.add_camp( this_omt, "faction_camp" );
Expand Down

0 comments on commit c5523af

Please sign in to comment.