mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Only log during turn based AI
This commit is contained in:
@@ -295,8 +295,7 @@ void DebugAI( INT8 bMsgType, SOLDIERTYPE *pSoldier, STR szOutput, bool doLog, IN
|
|||||||
CHAR8 msg[1024];
|
CHAR8 msg[1024];
|
||||||
CHAR8 buf[1024];
|
CHAR8 buf[1024];
|
||||||
|
|
||||||
|
if (!gfTurnBasedAI || !gfLogsEnabled || !doLog || pSoldier == nullptr)
|
||||||
if (!gfLogsEnabled || !doLog || pSoldier == nullptr)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
memset(buf, 0, 1024 * sizeof(char));
|
memset(buf, 0, 1024 * sizeof(char));
|
||||||
|
|||||||
Reference in New Issue
Block a user