1
0
Fork 0

call setWeightOpts on reset, too

This commit is contained in:
mfranz 2007-01-31 21:37:14 +00:00
parent 003ba28784
commit cb25691c03

View file

@ -456,10 +456,9 @@ var setWeightOpts = func {
} }
return tankchange; return tankchange;
} }
# Run it at startup to make sure the tank settings are correct # Run it at startup and on reset to make sure the tank settings are correct
_setlistener("/sim/signals/fdm-initialized", func { _setlistener("/sim/signals/fdm-initialized", func { settimer(setWeightOpts, 0) });
settimer(setWeightOpts, 0); _setlistener("/sim/signals/reset", func { cmdarg().getBoolValue() or setWeightOpts() });
});
# Called from the F&W dialog when the user selects a weight option # Called from the F&W dialog when the user selects a weight option