mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
Change ControlState typedef to double, and change all related floats/doubles to use it.
Fixes an off by 1 issue related to double->float->double conversion, and eliminates numerous warnings.
This commit is contained in:
@ -273,7 +273,7 @@ public:
|
||||
case TOK_OR:
|
||||
return std::max(lhsValue, rhsValue);
|
||||
case TOK_ADD:
|
||||
return std::min(lhsValue + rhsValue, 1.0f);
|
||||
return std::min(lhsValue + rhsValue, 1.0);
|
||||
default:
|
||||
assert(false);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user