Skip to content

Commit

Permalink
Fix vehicle third person affecting cameras
Browse files Browse the repository at this point in the history
When looking through camera, the vehicle third person affects view position. It shouldn't.
  • Loading branch information
robotboy655 committed Apr 6, 2014
1 parent 9df86a8 commit ef1723f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garrysmod/gamemodes/base/gamemode/cl_init.lua
Expand Up @@ -297,7 +297,7 @@ end
-----------------------------------------------------------]]
function GM:CalcVehicleView( Vehicle, ply, view )
if ( Vehicle.GetThirdPersonMode == nil ) then
if ( Vehicle.GetThirdPersonMode == nil || ply:GetViewEntity() != ply ) then
-- This hsouldn't ever happen.
return
end
Expand Down

1 comment on commit ef1723f

@Kobatz
Copy link

@Kobatz Kobatz commented on ef1723f Dec 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*shouldn't <.<

Please sign in to comment.