Fixes from Melchior FRANZ for the (no longer untested, heh)
adjEngControl() handler.
This commit is contained in:
parent
08378e88f0
commit
36db5c5703
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue