Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define REFLAG_FULL_LOD 8 // force a FULL lod
- #define REFLAG_FORCE_LOD 8 // force a low lod
- float R_CalcMDSLod(....)
- {
- .....
- if ( refent->reFlags & REFLAG_FULL_LOD )
- {
- return 1.0f;
- }
- ....
- if ( refent->reFlags & REFLAG_FORCE_LOD )
- {
- flod *= 0.5;
- }
- ....
- }
- This suspicious code was found in Wolf project by PVS-Studio static code analyzer.
- Warning message is:
- V649 There are two 'if' statements with identical conditional expressions. The first 'if' statement contains function return. This means that the second 'if' statement is senseless. Check lines: 243, 262. tr_animation.c 262
- 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
Advertisement