From bfa383273bee81f38df85b50d94b54a941e32aad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pali=20Roh=C3=A1r?= <pali.rohar@gmail.com>
Date: Fri, 27 May 2011 22:50:33 +0200
Subject: [PATCH] Skip title screens when specified map from command line

---
 src/stratagus/title.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/stratagus/title.cpp b/src/stratagus/title.cpp
index f31ff8bb8..4cb174f7c 100644
--- a/src/stratagus/title.cpp
+++ b/src/stratagus/title.cpp
@@ -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;
 	}