Merge from sourcemod-1.1 branch.

This commit is contained in:
David Anderson
2008-12-28 19:56:40 -05:00
3 changed files with 86 additions and 4 deletions
+8 -2
View File
@@ -126,9 +126,15 @@ void FetcherThread::RunThread(IThreadHandle *pHandle)
GetAdjustedTime(&t);
tm *curtime = localtime(&t);
g_SourceMod.BuildPath(Path_SM, log_path, sizeof(log_path), "logs/gamedata/L%02d%02d.log", curtime->tm_mon + 1, curtime->tm_mday);
g_SourceMod.BuildPath(Path_SM,
log_path,
sizeof(log_path),
"logs/gamedata/L%04d%02d%02d.log",
curtime->tm_year + 1900,
curtime->tm_mon + 1,
curtime->tm_mday);
logfile = fopen(log_path, "a");
logfile = fopen(log_path, "at");
if (!logfile)
{