]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/preferences.h
do not prompt for game when restarting after switching game, <3 @Garux
[xonotic/netradiant.git] / radiant / preferences.h
index 59dd60daaa0c6e42633932892511d91fa594429c..f2c47c03c1fd2e186572351891e910473489f0fd 100644 (file)
@@ -238,6 +238,12 @@ CopiedString m_sGameFile;
    prompt which game to load on startup
  */
 bool m_bGamePrompt;
+/*!
+   when if m_bGamePrompt is true
+   do not prompt at startup which game to load this time, but prompt the next times
+   this is used to not uselessly prompt game after having restarted because user switched game
+ */
+bool m_bSkipGamePromptOnce;
 /*!
    log console to radiant.log
    m_bForceLogConsole is an obscure forced latching situation
@@ -253,6 +259,7 @@ std::list<CGameDescription*> mGames;
 CGameDialog() :
        m_sGameFile( "" ),
        m_bGamePrompt( true ),
+       m_bSkipGamePromptOnce( false ),
        m_bForceLogConsole( false ){
 }
 virtual ~CGameDialog();