Skip to content

Commit 1c012a8

Browse files
Eliminate redundant code
1 parent 806750c commit 1c012a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sp/src/game/server/hl2/hl2_player.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4036,7 +4036,10 @@ Vector CHL2_Player::EyeDirection2D( void )
40364036
Vector CHL2_Player::EyeDirection3D( void )
40374037
{
40384038
Vector vecForward;
4039-
4039+
#ifdef MAPBASE
4040+
EyeVectors( &vecForward );
4041+
return vecForward;
4042+
#else
40404043
// Return the vehicle angles if we request them
40414044
if ( GetVehicle() != NULL )
40424045
{
@@ -4047,6 +4050,7 @@ Vector CHL2_Player::EyeDirection3D( void )
40474050

40484051
AngleVectors( EyeAngles(), &vecForward );
40494052
return vecForward;
4053+
#endif
40504054
}
40514055

40524056

0 commit comments

Comments
 (0)