Qt: Fix warning about parentheses
The original code had parentheses placed in weird locations IMO, which even caused compilers to issue warnings.
This commit is contained in:
parent
f1f2bd9c94
commit
1e6dc196aa
|
@ -233,12 +233,12 @@ void MappingIndicator::DrawMixedTriggers()
|
||||||
double r_bar_percent = r_analog;
|
double r_bar_percent = r_analog;
|
||||||
double l_bar_percent = l_analog;
|
double l_bar_percent = l_analog;
|
||||||
|
|
||||||
if (r_button && (r_button != r_analog) || (r_button == r_analog) && (r_analog > threshold))
|
if ((r_button && r_button != r_analog) || (r_button == r_analog && r_analog > threshold))
|
||||||
r_bar_percent = 1;
|
r_bar_percent = 1;
|
||||||
else
|
else
|
||||||
r_bar_percent *= 0.8;
|
r_bar_percent *= 0.8;
|
||||||
|
|
||||||
if (l_button && (l_button != l_analog) || (l_button == l_analog) && (l_analog > threshold))
|
if ((l_button && l_button != l_analog) || (l_button == l_analog && l_analog > threshold))
|
||||||
l_bar_percent = 1;
|
l_bar_percent = 1;
|
||||||
else
|
else
|
||||||
l_bar_percent *= 0.8;
|
l_bar_percent *= 0.8;
|
||||||
|
|
Loading…
Reference in New Issue