Skip to content

Commit

Permalink
clear avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
KorGgenT committed Jan 18, 2020
1 parent 5136670 commit 2427ce1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/hiking_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static void test_carry( units::mass carry_weight, int min_cal, int max_cal,
item bag( "bigback" );
REQUIRE( carry_weight >= bag.weight() );
carry_weight -= bag.weight();
clear_player();
clear_avatar();
avatar &dummy = g->u;
dummy.reset_move_mode();
if( mode == character_movemode::CMM_RUN ) {
Expand All @@ -77,7 +77,7 @@ static void test_carry( units::mass carry_weight, int min_cal, int max_cal,

TEST_CASE( "naked_walk", "[hike]" )
{
clear_player();
clear_avatar();
avatar &dummy = g->u;
const int cal_spent = distance_test( dummy, 1_hours );
CAPTURE( cal_spent );
Expand All @@ -86,7 +86,7 @@ TEST_CASE( "naked_walk", "[hike]" )

TEST_CASE( "naked_run", "[hike]" )
{
clear_player();
clear_avatar();
avatar &dummy = g->u;
dummy.toggle_run_mode();
const int cal_spent = distance_test( dummy, 1_hours );
Expand Down

0 comments on commit 2427ce1

Please sign in to comment.