Changed test rumble check to remove implicit data coercion

This commit is contained in:
Travis Nickles 2018-11-11 04:56:10 -06:00
parent 3da6face89
commit db859fb4db

View File

@ -106,7 +106,8 @@ namespace DS4Windows
public bool IsRumbleSet()
{
return RumbleMotorsExplicitlyOff || RumbleMotorStrengthLeftHeavySlow != 0 || RumbleMotorStrengthRightLightFast != 0;
const byte zero = 0;
return RumbleMotorsExplicitlyOff || RumbleMotorStrengthLeftHeavySlow != zero || RumbleMotorStrengthRightLightFast != zero;
}
}