cleanup + showmodedescriptions

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6734 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2011-12-13 15:02:25 +00:00
parent cc7a8cc974
commit d1790770d5
3 changed files with 9 additions and 44 deletions
+3 -1
View File
@@ -1172,6 +1172,8 @@ void showmapstats()
}
COMMAND(showmapstats, ARG_NONE);
VARP(showmodedescriptions, 0, 1, 1);
void startmap(const char *name, bool reset) // called just after a map load
{
copystring(clientmap, name);
@@ -1204,7 +1206,7 @@ void startmap(const char *name, bool reset) // called just after a map load
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" : "");
if(multiplayer(false) || m_botmode)
if(showmodedescriptions && (multiplayer(false) || m_botmode))
{
loopv(gmdescs) if(gmdescs[i].mode == gamemode)
{