Merge pull request #152 from z33ky/mb/gcc-fixes

Fix gcc build errors & warnings
This commit is contained in:
Blixibon
2021-11-06 12:17:42 -05:00
committed by GitHub
5 changed files with 11 additions and 10 deletions

View File

@@ -192,7 +192,7 @@ bool C_BaseViewModel::Interpolate( float currentTime )
}
inline bool C_BaseViewModel::ShouldFlipViewModel()
bool C_BaseViewModel::ShouldFlipViewModel()
{
#if defined(CSTRIKE_DLL) || defined (MAPBASE)
// If cl_righthand is set, then we want them all right-handed.

View File

@@ -104,7 +104,7 @@ C_BaseAnimating *FX_AffectRagdolls_GetHit( Vector vecOrigin, Vector vecStart, in
{
// don't do this when lots of ragdolls are simulating
if ( s_RagdollLRU.CountRagdolls(true) > 1 )
return false;
return NULL;
Ray_t shotRay;
shotRay.Init( vecStart, vecOrigin );

View File

@@ -758,7 +758,7 @@ CON_COMMAND_F( r_screenoverlay_indexed, "Draw specified material as an overlay i
}
else
{
Warning( "Format: r_screenoverlay_indexed <index> <material> %s\n" );
Warning( "Format: r_screenoverlay_indexed <index> [<material>]\n" );
}
}
#endif