1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

Since there was actually an issue with DVAR struct, it should now actually fix the log issue.

This commit is contained in:
RaidMax
2015-10-11 13:11:38 -05:00
parent e646f9eb40
commit 81c5fb60be
6 changed files with 22 additions and 38 deletions

View File

@ -624,17 +624,8 @@ namespace IW4MAdmin
logPath = logPath.Replace("/", "\\");
Mod = Mod.Replace("/", "\\");
int count = 0;
while(count < 15)
{
Int32.TryParse(getDvar("iw4m_onelog").current, out oneLog);
if (oneLog == 1)
break;
count++;
}
count = 0;
Thread.Sleep(100);
Int32.TryParse(getDvar("iw4m_onelog").current, out oneLog);
if (oneLog == -1)
{
@ -650,15 +641,9 @@ namespace IW4MAdmin
Website = "this server's website";
int logSync = -1;
while (count < 15)
{
Int32.TryParse(getDvar("g_logSync").current, out logSync);
if (logSync == 1)
break;
count++;
}
count = 0;
Thread.Sleep(100);
Int32.TryParse(getDvar("g_logSync").current, out logSync);
if (logSync == 0)
{