mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 23:05:30 +03:00
Eliminate redundant code
This commit is contained in:
parent
690299b39c
commit
7894c8ad87
@ -4036,7 +4036,10 @@ Vector CHL2_Player::EyeDirection2D( void )
|
|||||||
Vector CHL2_Player::EyeDirection3D( void )
|
Vector CHL2_Player::EyeDirection3D( void )
|
||||||
{
|
{
|
||||||
Vector vecForward;
|
Vector vecForward;
|
||||||
|
#ifdef MAPBASE
|
||||||
|
EyeVectors( &vecForward );
|
||||||
|
return vecForward;
|
||||||
|
#else
|
||||||
// Return the vehicle angles if we request them
|
// Return the vehicle angles if we request them
|
||||||
if ( GetVehicle() != NULL )
|
if ( GetVehicle() != NULL )
|
||||||
{
|
{
|
||||||
@ -4047,6 +4050,7 @@ Vector CHL2_Player::EyeDirection3D( void )
|
|||||||
|
|
||||||
AngleVectors( EyeAngles(), &vecForward );
|
AngleVectors( EyeAngles(), &vecForward );
|
||||||
return vecForward;
|
return vecForward;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user