Skip to content

Commit

Permalink
Adjust swimming test to properly use fixed setpos
Browse files Browse the repository at this point in the history
  • Loading branch information
RenechCDDA committed Jul 8, 2024
1 parent 04d7352 commit 9d0a5ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/water_movement_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ TEST_CASE( "avatar_diving", "[diving]" )

// Put us back at 0. We shouldn't have to do this but other tests are
// making assumptions about what z-level they're on.
g->vertical_shift( 0 );
dummy.setpos( test_origin );
}

static const efftype_id effect_winded( "winded" );
Expand Down Expand Up @@ -905,6 +905,7 @@ static std::map<std::string, swim_result> expected_results = {

TEST_CASE( "check_swim_move_cost_and_distance_values", "[swimming][slow]" )
{
clear_avatar();
setup_test_lake();

avatar &dummy = get_avatar();
Expand Down

0 comments on commit 9d0a5ec

Please sign in to comment.