1.1 --- a/core/CLogger.cpp Thu Jan 04 23:43:01 2007 +0000
1.2 +++ b/core/CLogger.cpp Fri Jan 05 00:42:22 2007 +0000
1.3 @@ -39,7 +39,11 @@
1.4 char date[32];
1.5 strftime(date, sizeof(date), "%m/%d/%Y - %H:%M:%S", curtime);
1.6 fprintf(fp, "L %s: SourceMod log file started (file \"L%02d%02d%03d.log\") (Version \"%s\")\n", date, curtime->tm_mon + 1, curtime->tm_mday, i, SOURCEMOD_VERSION);
1.7 - fprintf(fp, "L %s: Info (map \"%s\")\n", date, m_CurMapName.c_str());
1.8 + if (m_PrntMapname)
1.9 + {
1.10 + fprintf(fp, "L %s: Info (map \"%s\")\n", date, m_CurMapName.c_str());
1.11 + m_PrntMapname = false;
1.12 + }
1.13 fclose(fp);
1.14 }
1.15 }
1.16 @@ -249,6 +253,7 @@
1.17 void CLogger::MapChange(const char *mapname)
1.18 {
1.19 m_CurMapName.assign(mapname);
1.20 + m_PrntMapname = true;
1.21
1.22 switch (m_mode)
1.23 {