Permalink
Browse files

Fix vehicle third person affecting cameras

When looking through camera, the vehicle third person affects view position. It shouldn't.
  • Loading branch information...
1 parent 9df86a8 commit ef1723f2f5e536ab4be93dd56a3252391761ce67 @robotboy655 robotboy655 committed Apr 6, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 garrysmod/gamemodes/base/gamemode/cl_init.lua
@@ -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

1 comment on commit ef1723f

@Kobatz
Kobatz commented on ef1723f Dec 2, 2014

*shouldn't <.<

Please sign in to comment.