Fix bug that ignored -pilot
Fixes: d03a6c44b8
("Register new pilots on menu creation, not activation")
This commit is contained in:
parent
41f4e84261
commit
4a9e027e02
|
@ -474,6 +474,8 @@ static int main_menu_handler(newmenu *menu,const d_event &event, int *menu_choic
|
|||
switch (event.type)
|
||||
{
|
||||
case EVENT_WINDOW_CREATED:
|
||||
if (InterfaceUniqueState.PilotName[0])
|
||||
break;
|
||||
RegisterPlayer();
|
||||
break;
|
||||
case EVENT_WINDOW_ACTIVATED:
|
||||
|
|
Loading…
Reference in a new issue