From 5bd45e0709b6434b5f465a94e744a19038641d43 Mon Sep 17 00:00:00 2001 From: Inuyaksa Date: Sat, 13 Feb 2021 23:21:56 +0100 Subject: [PATCH] range changed --- Models/Instruments/ND/canvas/map/TERRAIN.symbol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Models/Instruments/ND/canvas/map/TERRAIN.symbol b/Models/Instruments/ND/canvas/map/TERRAIN.symbol index 0b4098a8..01668c33 100644 --- a/Models/Instruments/ND/canvas/map/TERRAIN.symbol +++ b/Models/Instruments/ND/canvas/map/TERRAIN.symbol @@ -67,15 +67,15 @@ var updateTerrain = func(r_scaled){ var tiles = me.tile_list; - var proj_lon = pos_lon + ((col * (range/15) * math.sin(DEG2RAD * (heading - 90))) / 30); - var proj_lat = pos_lat + ((col * (range/15) * math.cos(DEG2RAD * (heading - 90))) / 30); + var proj_lon = pos_lon + ((col * (range/30) * math.sin(DEG2RAD * (heading - 90))) / 30); + var proj_lat = pos_lat + ((col * (range/30) * math.cos(DEG2RAD * (heading - 90))) / 30); var elevft = []; for (var row = 0; row <= len; row += 1) { - var point_lon = proj_lon + ((row * (range/15) / 30) * math.sin(DEG2RAD * heading)); - var point_lat = proj_lat + ((row * (range/15) / 30) * math.cos(DEG2RAD * heading)); + var point_lon = proj_lon + ((row * (range/30) / 30) * math.sin(DEG2RAD * heading)); + var point_lat = proj_lat + ((row * (range/30) / 30) * math.cos(DEG2RAD * heading)); var elev = me.get_elevation(point_lat, point_lon); var grad = 0; #black