Skip title screens when specified map from command line
This commit is contained in:
parent
61c92f48c0
commit
bfa383273b
1 changed files with 2 additions and 1 deletions
|
@ -40,6 +40,7 @@
|
|||
|
||||
TitleScreen **TitleScreens; /// Title screens to show at startup
|
||||
static bool WaitNoEvent; /// Flag got an event
|
||||
extern std::string CliMapName;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -167,7 +168,7 @@ static void ShowTitleImage(TitleScreen *t)
|
|||
*/
|
||||
void ShowTitleScreens()
|
||||
{
|
||||
if (!TitleScreens) {
|
||||
if (!TitleScreens || !CliMapName.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue