1
0
Fork 0

Nasal/view.nas: set new property /sim/current-view/multiplayer to 0 or 1.

Useful to have this information available as a simple property.
This commit is contained in:
Julian Smith 2019-08-18 22:06:57 +01:00
parent 48911a8131
commit 7550ff70d9

View file

@ -530,8 +530,10 @@ var model_view_handler_class = {
setup: func(data) {
if (data.root == '/') {
var ident = '[' ~ data.callsign ~ ']';
setprop('/sim/current-view/multiplayer', 0);
} else {
var ident = '"' ~ data.callsign ~ '" (' ~ data.model ~ ')';
setprop('/sim/current-view/multiplayer', 1);
}
me.current = data.callsign;