Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void dgBody::AddBuoyancyForce (....)
- {
- ...
- damp = (m_omega % m_omega) * dgFloat32 (10.0f) *
- fluidAngularViscousity;
- damp = GetMax (GetMin ((m_omega % m_omega) *
- dgFloat32 (1000.0f) *
- fluidAngularViscousity,
- dgFloat32(0.25f)),
- dgFloat32(2.0f));
- ...
- }
- This suspicious code was found in Newton Game Dynamics project by PVS-Studio static code analyzer.
- Warning message is:
- V519 The 'damp' object is assigned values twice successively. Perhaps this is a mistake. physics dgbody.cpp 404
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment