... | ... |
@@ -172,8 +172,11 @@ var init_props = func { |
172 | 172 |
props.globals.getNode('/autopilot/locks/roll',1).setValue(''); |
173 | 173 |
props.globals.getNode('/autopilot/locks/passive-mode', 1).setIntValue(1); |
174 | 174 |
|
175 |
- data.zkv1000_dir = getprop('/sim/fg-aircraft') ~ '/Instruments-3d/zkv1000/'; |
|
176 | 175 |
data.zkv1000_reldir = 'Aircraft/Instruments-3d/zkv1000/'; |
176 |
+ if (getprop('/sim/fg-aircraft') != nil) |
|
177 |
+ data.zkv1000_dir = getprop('/sim/fg-aircraft') ~ '/Instruments-3d/zkv1000/'; |
|
178 |
+ else |
|
179 |
+ data.zkv1000_dir = getprop('/sim/fg-root') ~ '/' ~ data.zkv1000_reldir; |
|
177 | 180 |
} |
178 | 181 |
|
179 | 182 |
var load_nasal = func { |