From 4167d92a126b7c5f8d285700db5eb22df3d1b3d5 Mon Sep 17 00:00:00 2001 From: StyledStrike Date: Tue, 31 Dec 2024 11:30:32 -0300 Subject: [PATCH] Only show "up" skybox indicator on aircraft --- lua/glide/client/skybox_detector.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/glide/client/skybox_detector.lua b/lua/glide/client/skybox_detector.lua index 9f1f806..aca5a0e 100644 --- a/lua/glide/client/skybox_detector.lua +++ b/lua/glide/client/skybox_detector.lua @@ -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