Skip to content

Commit

Permalink
fix errors reported by clang tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
dseguin committed Aug 24, 2023
1 parent 4bf4e16 commit 87ff687
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/map_extras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ static const item_group_id Item_spawn_data_trash_cart( "trash_cart" );

static const itype_id itype_223_casing( "223_casing" );
static const itype_id itype_762_51_casing( "762_51_casing" );
static const itype_id itype_9mm_casing( "9mm_casing" );
static const itype_id itype_acoustic_guitar( "acoustic_guitar" );
static const itype_id itype_ash( "ash" );
static const itype_id itype_bag_canvas( "bag_canvas" );
Expand Down
2 changes: 1 addition & 1 deletion src/npcmove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ void npc::assess_danger()
}
// being outnumbered is serious. Scale up your assessment if you're outnumbered.
if( hostile_count > friendly_count ) {
assessment *= ( hostile_count / friendly_count );
assessment *= ( hostile_count / static_cast<float>( friendly_count ) );
}

const auto handle_hostile = [&]( const Character & foe, float foe_threat,
Expand Down

0 comments on commit 87ff687

Please sign in to comment.