mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-06 02:37:47 +00:00
comparing floating point with "==" or "!=" is not correct (Chara.cpp)
This commit is contained in:
parent
4c4fff58ce
commit
a98a7eccc8
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ bool Sapphire::Entity::Chara::face( const Common::FFXIVARR_POSITION3& p )
|
|||
|
||||
setRot( newRot );
|
||||
|
||||
return oldRot != newRot;
|
||||
return ( fabs( oldRot - newRot ) <= std::numeric_limits< float >::epsilon() * fmax( fabs( oldRot ), fabs( newRot ) ) );
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Add table
Reference in a new issue