Skip to content

Commit

Permalink
Eliminate redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
samisalreadytaken committed Oct 4, 2021
1 parent 690299b commit 7894c8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sp/src/game/server/hl2/hl2_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand All @@ -4047,6 +4050,7 @@ Vector CHL2_Player::EyeDirection3D( void )

AngleVectors( EyeAngles(), &vecForward );
return vecForward;
#endif
}


Expand Down

0 comments on commit 7894c8a

Please sign in to comment.