Skip to content

Commit

Permalink
fix weapon steadiness bar not working
Browse files Browse the repository at this point in the history
# |<-- Using around 50, Maximum 72 Characters -->|

due to a bug the bar only shows up when steadiness is full, problem was
that the calculated steadiness was stored in an int while the value was
a double resulting in either empty or full bar.
# |<----      Limit Each Line to a Maximum Of 72 Characters       ---->|

# Provide links or keys to any relevant tickets, articles or other resources
# Example: fixes #1234, closes #2345, resolves #3456, references #4567
fixes #69954
  • Loading branch information
OldFriendEr committed Dec 7, 2023
1 parent 54f3d4c commit 3bb14d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ranged.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1707,7 +1707,7 @@ static std::vector<aim_type_prediction> calculate_ranged_chances(
const recoil_prediction aim_to_selected = predict_recoil( you, weapon, target,
ui.get_sight_dispersion(), ui.get_selected_aim_type(), you.recoil );

const int selected_steadiness = calc_steadiness( you, weapon, pos, aim_to_selected.recoil );
const double selected_steadiness = calc_steadiness( you, weapon, pos, aim_to_selected.recoil );

const int throw_moves = throw_cost( you, weapon );

Expand Down

0 comments on commit 3bb14d7

Please sign in to comment.