1
0
Fork 0
This commit is contained in:
Philosopher 2013-08-25 09:54:14 -05:00
parent 41fc0498c0
commit 819aa8a988
2 changed files with 3 additions and 3 deletions

View file

@ -376,8 +376,8 @@ var model_view_handler = {
return i;
return nil;
},
select: func(which) {
if (num(which) == nil)
select: func(which, by_callsign=0) {
if (by_callsign or num(which) == nil)
which = me.find(which) or 0; # turn callsign into index
me.setup(me.list[which]);

View file

@ -40,7 +40,7 @@
var select = func {
var e = dlg.initNode("choice", "").getValue();
if (e == myself or contains(multiplayer.model.callsign, entries[e]))
view.model_view_handler.select(entries[e]);
view.model_view_handler.select(which: entries[e], by_callsign: 1);
else
settimer(func fgcommand("dialog-show", self), 0);
}