Skip to content

Commit

Permalink
Merge pull request #71406 from wwkk222208/recoil_predict_fixation
Browse files Browse the repository at this point in the history
Fix the inconsistency between the aiming prediction time and the actual time
  • Loading branch information
Maleclypse authored Feb 1, 2024
2 parents 30a7e9c + 907d16c commit 4aee1f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ranged.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1718,8 +1718,8 @@ static std::vector<aim_type_prediction> calculate_ranged_chances(
if( mode == target_ui::TargetMode::Throw || mode == target_ui::TargetMode::ThrowBlind ) {
prediction.moves = throw_moves;
} else {
prediction.moves = you.gun_engagement_moves( weapon, aim_type.threshold, you.recoil, target )
+ time_to_attack( you, *weapon.type );
prediction.moves = predict_recoil( you, weapon, target, ui.get_sight_dispersion(), aim_type,
you.recoil ).moves + time_to_attack( you, *weapon.type );
}

// if the default method is "behind" the selected; e.g. you are in immediate
Expand Down

0 comments on commit 4aee1f3

Please sign in to comment.