better check for "lookat", as the C++ part does this, too. (And one could
also write "Blutwurst" instead of "lookfrom", with the same effect.)
This commit is contained in:
parent
7ec82ab621
commit
c50aa8d817
1 changed files with 3 additions and 3 deletions
|
@ -130,7 +130,7 @@ ________________________________________________________________________________
|
||||||
var viewdir = props.globals.getNode("/sim").getChildren("view");
|
var viewdir = props.globals.getNode("/sim").getChildren("view");
|
||||||
forindex (var i; viewdir) {
|
forindex (var i; viewdir) {
|
||||||
var t = viewdir[i].getNode("type");
|
var t = viewdir[i].getNode("type");
|
||||||
viewdir[i] = t != nil and t.getValue() == "lookfrom" ? 1 : -1;
|
viewdir[i] = t != nil and t.getValue() == "lookat" ? 1 : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
var kbdshift = props.globals.getNode("/devices/status/keyboard/shift", 1);
|
var kbdshift = props.globals.getNode("/devices/status/keyboard/shift", 1);
|
||||||
|
@ -559,7 +559,7 @@ ________________________________________________________________________________
|
||||||
m = get_mode();
|
m = get_mode();
|
||||||
if (m == 0) {
|
if (m == 0) {
|
||||||
v = getprop("/sim/current-view/view-number");
|
v = getprop("/sim/current-view/view-number");
|
||||||
view.panViewDir(viewdir[v]);
|
view.panViewDir(-viewdir[v]);
|
||||||
} elsif (m == 1) {
|
} elsif (m == 1) {
|
||||||
controls.adjMixture(-1);
|
controls.adjMixture(-1);
|
||||||
harrier();
|
harrier();
|
||||||
|
@ -582,7 +582,7 @@ ________________________________________________________________________________
|
||||||
m = get_mode();
|
m = get_mode();
|
||||||
if (m == 0) {
|
if (m == 0) {
|
||||||
v = getprop("/sim/current-view/view-number");
|
v = getprop("/sim/current-view/view-number");
|
||||||
view.panViewDir(-viewdir[v]);
|
view.panViewDir(viewdir[v]);
|
||||||
} elsif (m == 1) {
|
} elsif (m == 1) {
|
||||||
controls.adjMixture(1);
|
controls.adjMixture(1);
|
||||||
harrier();
|
harrier();
|
||||||
|
|
Loading…
Add table
Reference in a new issue