From aa767c43556b3b9129b8cc85b49de628727b1651 Mon Sep 17 00:00:00 2001 From: Sevenfm Date: Thu, 14 Oct 2021 08:43:15 +0000 Subject: [PATCH] Minor code improvements for quest logging. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9178 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- TacticalAI/AIMain.cpp | 2 +- TacticalAI/NPC.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TacticalAI/AIMain.cpp b/TacticalAI/AIMain.cpp index 7d57d308..d6f4878b 100644 --- a/TacticalAI/AIMain.cpp +++ b/TacticalAI/AIMain.cpp @@ -352,7 +352,7 @@ void DebugQuestInfo(STR szOutput) if (DebugFile != NULL) { // first write game clock and date/time - sprintf(buf, "%d Day %d %d:%d ", GetJA2Clock(), guiDay, guiHour, guiMin); + sprintf(buf, "(%d) Day %d %d:%d ", GetJA2Clock(), guiDay, guiHour, guiMin); fputs(buf, DebugFile); fputs(szOutput, DebugFile); diff --git a/TacticalAI/NPC.cpp b/TacticalAI/NPC.cpp index a1df744f..41b5e900 100644 --- a/TacticalAI/NPC.cpp +++ b/TacticalAI/NPC.cpp @@ -1934,7 +1934,7 @@ void Converse( UINT8 ubNPC, UINT8 ubMerc, INT8 bApproach, UINT32 uiApproachData SOLDIERTYPE * pNPC; BOOLEAN fAttemptingToGiveItem; - DebugQuestInfo(String("Converse: merc<%d> to NPC <%d> %d data %d", ubMerc, ubNPC, bApproach, uiApproachData)); + DebugQuestInfo(String("Converse: merc <%d> to NPC <%d> %d data %d", ubMerc, ubNPC, bApproach, uiApproachData)); // we have to record whether an item is being given in order to determine whether, // in the case where the approach is overridden, we need to return the item to the