Skip to content

Commit 4aee1f3

Browse files
authored
Merge pull request #71406 from wwkk222208/recoil_predict_fixation
Fix the inconsistency between the aiming prediction time and the actual time
2 parents 30a7e9c + 907d16c commit 4aee1f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ranged.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,8 +1718,8 @@ static std::vector<aim_type_prediction> calculate_ranged_chances(
17181718
if( mode == target_ui::TargetMode::Throw || mode == target_ui::TargetMode::ThrowBlind ) {
17191719
prediction.moves = throw_moves;
17201720
} else {
1721-
prediction.moves = you.gun_engagement_moves( weapon, aim_type.threshold, you.recoil, target )
1722-
+ time_to_attack( you, *weapon.type );
1721+
prediction.moves = predict_recoil( you, weapon, target, ui.get_sight_dispersion(), aim_type,
1722+
you.recoil ).moves + time_to_attack( you, *weapon.type );
17231723
}
17241724

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

0 commit comments

Comments
 (0)