Skip title screens when specified map from command line

This commit is contained in:
Pali Rohár 2011-05-27 22:50:33 +02:00
parent 61c92f48c0
commit bfa383273b

View file

@ -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;
}