Add -Wdouble-promotion switch to clang/gcc compilers
It introduces a lot of ugly casts. Long term the floats should probably be changed to doubles everywhere since we're only compiling for 64 bit x86.
This commit is contained in:
@@ -564,7 +564,7 @@ void ChaperoneTabController::eventLoopTick(
|
||||
{
|
||||
float mod = m_chaperoneVelocityModifier
|
||||
* std::max( { leftSpeed, rightSpeed, hmdSpeed } );
|
||||
if ( mod > 0.02 )
|
||||
if ( mod > 0.02f )
|
||||
{
|
||||
m_chaperoneVelocityModifierCurrent += mod;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user