From 4ea27ef1c549cbd591e08f302de278cd3e2b549c Mon Sep 17 00:00:00 2001 From: attick Date: Thu, 24 Oct 2019 02:16:19 -0400 Subject: [PATCH] Disable debug message to update local player every call of icon replacement without instantly destroying log file. --- Dalamud/Game/ClientState/Actors/ActorTable.cs | 4 ++-- Dalamud/Game/Internal/Gui/IconReplacer.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dalamud/Game/ClientState/Actors/ActorTable.cs b/Dalamud/Game/ClientState/Actors/ActorTable.cs index 3fea9625f..d1dd88a92 100644 --- a/Dalamud/Game/ClientState/Actors/ActorTable.cs +++ b/Dalamud/Game/ClientState/Actors/ActorTable.cs @@ -37,8 +37,8 @@ namespace Dalamud.Game.ClientState.Actors { var actorStruct = Marshal.PtrToStructure(offset); - Log.Debug("ActorTable[{0}]: {1} - {2} - {3}", index, tblIndex.ToString("X"), offset.ToString("X"), - actorStruct.ObjectKind.ToString()); + //Log.Debug("ActorTable[{0}]: {1} - {2} - {3}", index, tblIndex.ToString("X"), offset.ToString("X"), + // actorStruct.ObjectKind.ToString()); switch (actorStruct.ObjectKind) { case ObjectKind.Player: return new PlayerCharacter(actorStruct); diff --git a/Dalamud/Game/Internal/Gui/IconReplacer.cs b/Dalamud/Game/Internal/Gui/IconReplacer.cs index 38ef4df91..8c5f23a67 100644 --- a/Dalamud/Game/Internal/Gui/IconReplacer.cs +++ b/Dalamud/Game/Internal/Gui/IconReplacer.cs @@ -100,6 +100,7 @@ namespace Dalamud.Game.Internal.Gui { // Don't clutter the spaghetti any worse than it already is. int lastMove = Marshal.ReadInt32(lastComboMove); float comboTime = (float)Marshal.ReadInt32(comboTimer); + localCharacter = dalamud.ClientState.LocalPlayer; byte level = localCharacter.Level; // DRAGOON