1
0
Fork 0

Remove Debug from scenario dialog

This commit is contained in:
Richard Harrison 2020-06-05 12:39:20 +02:00
parent f0aa44c834
commit d006f00cd4

View file

@ -203,11 +203,9 @@
var path = getprop("/sim/fg-root") ~ "/AI";
scenarios = [];
i=0;
foreach(var s; props.globals.getNode("sim/ai/scenarios",1).getChildren("scenario")){
append(scenarios, s);
print(s.getNode("name").getValue()); i+=1;
}
# sort the scenarios into alpha order.
scenarios = sort (scenarios, func (a,b) {cmp(a.getNode("name").getValue(), b.getNode("name").getValue());});
@ -219,7 +217,6 @@ print(s.getNode("name").getValue()); i+=1;
col = 0;
for(i=0;i<size(scenarios);i += 1) {
print(i," -- ",scenarios[i].getNode("name").getValue());
processScenario( i, col, scenarios[i]);
coli += 1;
if (coli > colsz){