1
0
Fork 0

Fixes from Melchior FRANZ for the (no longer untested, heh)

adjEngControl() handler.
This commit is contained in:
andy 2004-01-07 02:12:27 +00:00
parent 08378e88f0
commit 36db5c5703

View file

@ -169,10 +169,10 @@ adjPropeller = func {
adjEngControl = func { adjEngControl = func {
engs = props.globals.getNode("/controls/engines").getChildren("engine"); engs = props.globals.getNode("/controls/engines").getChildren("engine");
delta = arg[1] * THROTTLE_RATE * getprop("/sim/time/delta-reltime-sec"); delta = arg[1] * THROTTLE_RATE * getprop("/sim/time/delta-realtime-sec");
foreach(e; engs) { foreach(e; engs) {
node = e.getNode(arg[0], 1); node = e.getNode(arg[0], 1);
node.setValue(node.getValue + delta); node.setValue(node.getValue() + delta);
} }
} }