Skip to content

Commit ff0763c

Browse files
authored
Merge pull request #466 from haslinghuis/change-ground-speed
Add scale to ground speed for >= API 1.45
2 parents 0d0b60c + 9f07432 commit ff0763c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: src/SCRIPTS/BF/PAGES/rescue.lua

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ if apiVersion >= 1.41 then
1616
fields[#fields + 1] = { t = "Angle", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 0, max = 200, vals = { 1, 2 } }
1717
fields[#fields + 1] = { t = "Initial Altitude", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 20, max = 100, vals = { 3, 4 } }
1818
fields[#fields + 1] = { t = "Descent Distance", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 30, max = 500, vals = { 5, 6 } }
19-
fields[#fields + 1] = { t = "Ground Speed", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 30, max = 3000, vals = { 7, 8 } }
19+
20+
if apiVersion >= 1.45 then
21+
fields[#fields + 1] = { t = "Ground Speed", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 0, max = 3000, vals = { 7, 8 }, scale = 100 }
22+
else
23+
fields[#fields + 1] = { t = "Ground Speed", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 30, max = 3000, vals = { 7, 8 } }
24+
end
2025

2126
if apiVersion >= 1.43 then
2227
fields[#fields + 1] = { t = "Ascend Rate", x = x, y = inc.y(lineSpacing), sp = x + sp, min = 100, max = 2500, vals = { 17, 18 }, scale = 100 }

0 commit comments

Comments
 (0)