Eliminate redundant code

This commit is contained in:
samisalreadytaken 2021-10-04 20:26:46 +03:00
parent 690299b39c
commit 7894c8ad87

View File

@ -4036,7 +4036,10 @@ Vector CHL2_Player::EyeDirection2D( void )
Vector CHL2_Player::EyeDirection3D( void )
{
Vector vecForward;
#ifdef MAPBASE
EyeVectors( &vecForward );
return vecForward;
#else
// Return the vehicle angles if we request them
if ( GetVehicle() != NULL )
{
@ -4047,6 +4050,7 @@ Vector CHL2_Player::EyeDirection3D( void )
AngleVectors( EyeAngles(), &vecForward );
return vecForward;
#endif
}