Skip to content

Commit

Permalink
Only show "up" skybox indicator on aircraft
Browse files Browse the repository at this point in the history
  • Loading branch information
StyledStrike committed Dec 31, 2024
1 parent 020c7ba commit 4167d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/glide/client/skybox_detector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ local function DetectSkybox( isDrawingDepth, isDrawSkybox, isDraw3DSkybox )
if dirIndex == 5 then
local vehicle = Glide.currentVehicle

-- Skip checking the up direction while in a car
if IsValid( vehicle ) and vehicle.VehicleType == Glide.VEHICLE_TYPE.CAR then
-- Skip checking the up direction while not piloting an aircraft
if IsValid( vehicle ) and not Glide.IsAircraft( vehicle ) then
dirIndex = 1
end
end
Expand Down

0 comments on commit 4167d92

Please sign in to comment.