From 8301a4f16eff9e60b6a75b7278e4d2556d2d5671 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Mon, 19 Aug 2019 08:44:48 +0100 Subject: [PATCH] Nasal/view.nas: allow Tower View Look From to work with multiplayer aircraft. --- Nasal/view.nas | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Nasal/view.nas b/Nasal/view.nas index 073bdfbb0..4514448fb 100644 --- a/Nasal/view.nas +++ b/Nasal/view.nas @@ -5,7 +5,9 @@ # ATTENTION: # /sim/current-view/view-number is in the range 0..viewCount, it is NOT -# the index used in aircraft XML files (e.g. ) +# the index used in aircraft XML files (e.g. ). +# +# For the latter, use /sim/current-view/view-number-raw. # For debugging. Returns string containing description of . # @@ -258,9 +260,9 @@ var manager = { forindex (var i; viewnodes) { # Install this view, marking as multiplayer if appropriate. var multiplayer = 1; - if (i==4) { - # Tower Look From views does not currently support - # multiplayer aircraft. + if (0) { + # Use this for views that do not work with multiplayer + # aircraft. multiplayer = 0; } var viewnode = viewnodes[i];