From 81dc4e22162783175057cbd255db849d1afd74df Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Sun, 24 Dec 2023 06:01:47 -0800 Subject: [PATCH] fix: remove cancelOnLogout handling (#1354) --- dGame/dComponents/BuffComponent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dGame/dComponents/BuffComponent.cpp b/dGame/dComponents/BuffComponent.cpp index be33527f..c901c19d 100644 --- a/dGame/dComponents/BuffComponent.cpp +++ b/dGame/dComponents/BuffComponent.cpp @@ -398,7 +398,8 @@ void BuffComponent::UpdateXml(tinyxml2::XMLDocument* doc) { for (const auto& [id, buff] : m_Buffs) { auto* buffEntry = doc->NewElement("b"); - if (buff.cancelOnZone || buff.cancelOnLogout) continue; + // TODO: change this if to if (buff.cancelOnZone || buff.cancelOnLogout) handling at some point. No current way to differentiate between zone transfer and logout. + if (buff.cancelOnZone) continue; buffEntry->SetAttribute("id", id); buffEntry->SetAttribute("t", buff.time);