1
0
Fork 0

Fix #1404: bump up max runways

(after making it an explicit value, as it was hidden before)
This commit is contained in:
Philosopher 2014-03-09 14:06:26 -05:00
parent 188843cb78
commit 7a91a7c444

View file

@ -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", "");