From 8191162962dd417ed6500624da9d5009cd930a1f Mon Sep 17 00:00:00 2001 From: ac_stef Date: Sun, 7 Sep 2008 13:35:10 +0000 Subject: [PATCH] added warning for flag modes on maps without flags git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2496 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clientgame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index 2e09d010..5a1bba40 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -612,7 +612,8 @@ void startmap(const char *name) // called just after a map load showscores(false); intermission = false; minutesremaining = -1; - if(*clientmap) conoutf("game mode is \"%s\"", modestr(gamemode, modeacronyms > 0)); + bool noflags = (m_ctf || m_ktf) && (!numflagspawn[0] || !numflagspawn[1]); + if(*clientmap) conoutf("game mode is \"%s\"%s", modestr(gamemode, modeacronyms > 0), noflags ? " - \f2but there are no flag bases on this map" : ""); // run once if(firstrun)