Extra checks.

parent 982e7bcb
......@@ -25,7 +25,7 @@
</wp>
<wp n="2">
<type type="string">basic</type>
<ident type="string">E037N055</ident>
<ident type="string">GEKLA</ident>
<lon type="double">37.8681</lon>
<lat type="double">55.65</lat>
</wp>
......
......@@ -277,7 +277,7 @@ var ImportFGFPRM = func(file) {
# continue;
# }
for(var jj = 0; jj < size(navaids); jj += 1){
if(navaids[jj].type != "VOR"){
if((navaids[jj].type != "VOR") or (navaids[jj].id != wp.wp_name)){
continue;
}
setprop("/fdm/jsbsim/fcs/NPK/Orbita/flightplan/RM/RM[" ~ (count + 1) ~ "]/phi-deg", navaids[jj].lat);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment