[Gui] remove unnecessary Boolean comparisons

This commit is contained in:
Uwe
2022-06-15 03:47:55 +02:00
parent a289ec4a06
commit 0828d769e8
13 changed files with 22 additions and 22 deletions

View File

@@ -293,10 +293,10 @@ void Gui::GUIApplicationNativeEventAware::importSettings(std::vector<int>& motio
for (i = 0; i < 6; ++i) {
if (motionDataArray[i] != 0) {
if (enabled[i] == false)
if (!enabled[i])
motionDataArray[i] = 0;
else {
if (reversed[i] == true)
if (reversed[i])
motionDataArray[i] = - motionDataArray[i];
motionDataArray[i] = (int)((float)(motionDataArray[i]) * sensitivity[i] * generalSensitivity);
}