From 0641041e55c5185b38076bf5a43f6a04a1ac6ca2 Mon Sep 17 00:00:00 2001 From: Taylor Richards Date: Thu, 6 Apr 2017 12:08:29 -0400 Subject: [PATCH] make sure freespace restarts with original cmdline options --- src/network/stand_gui.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/network/stand_gui.cpp b/src/network/stand_gui.cpp index eef24dd..d333b80 100644 --- a/src/network/stand_gui.cpp +++ b/src/network/stand_gui.cpp @@ -1385,15 +1385,13 @@ void Standalone::wsDoFrame() if ( !wsi_standalone && !(++m_rate_limit % 60) ) { // restart game process if it terminated if ( !wxProcess::Exists(fspid) ) { - wxCmdLineArgsArray empty; - try { - startFreeSpace(0, empty); + startFreeSpace(wxGetApp().argc, wxGetApp().argv); } catch (const char *err) { wxMessageBox(err, "Error!", wxOK|wxICON_ERROR|wxCENTRE|wxSTAY_ON_TOP); Shutdown(); - } + } catch (const bool) { } wxMilliSleep(500); } -- 2.39.2