Fix #1404: bump up max runways
(after making it an explicit value, as it was hidden before)
This commit is contained in:
parent
188843cb78
commit
7a91a7c444
1 changed files with 3 additions and 2 deletions
|
@ -39,6 +39,7 @@
|
||||||
<nasal>
|
<nasal>
|
||||||
<!-- Generalize all this, turn into helpers and load defaults via XML -->
|
<!-- Generalize all this, turn into helpers and load defaults via XML -->
|
||||||
<open><![CDATA[
|
<open><![CDATA[
|
||||||
|
var MAX_RUNWAYS = 28; # number of entries at KEDW
|
||||||
|
|
||||||
var DIALOG = cmdarg();
|
var DIALOG = cmdarg();
|
||||||
|
|
||||||
|
@ -186,11 +187,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
i += 1;
|
i += 1;
|
||||||
if (i == 10)
|
if (i == MAX_RUNWAYS)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (i < 10) {
|
while (i < MAX_RUNWAYS) {
|
||||||
# zero remaining runway data
|
# zero remaining runway data
|
||||||
setprop("sim/gui/dialogs/airports/selected-airport/runway[" ~ i ~ "]/label", "");
|
setprop("sim/gui/dialogs/airports/selected-airport/runway[" ~ i ~ "]/label", "");
|
||||||
setprop("sim/gui/dialogs/airports/selected-airport/runway[" ~ i ~ "]/length-hdg", "");
|
setprop("sim/gui/dialogs/airports/selected-airport/runway[" ~ i ~ "]/length-hdg", "");
|
||||||
|
|
Loading…
Reference in a new issue