mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-17 20:10:21 +03:00
Eliminate redundant code
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user