From 12283556efbb5cf7d5c9e4ff91d1019457ad9d39 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 23:35:27 +0000 Subject: [PATCH] Decompile fn_24255 (CMsgEffect::CMsgEffect) Batch #12663 by Yommy: 1 byte-identical, 0 confirmed by peer review. - fn_24255 CMsgEffect::CMsgEffect: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/Effects/MsgEffect.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Source/Contents/Effects/MsgEffect.cpp b/Source/Contents/Effects/MsgEffect.cpp index 240e9e5b..ac4f48ef 100644 --- a/Source/Contents/Effects/MsgEffect.cpp +++ b/Source/Contents/Effects/MsgEffect.cpp @@ -31,6 +31,13 @@ // GLOBAL: gl_24975 bool g_msgEffectShowSpecial = true; +// INLINED +static void ClearVector(vector3d& vector) { + vector.x = 0.0f; + vector.y = 0.0f; + vector.z = 0.0f; +} + // OFFSET: 0x00E4A550 // FUNCTION: fn_24255 CMsgEffect::CMsgEffect() { @@ -58,12 +65,8 @@ CMsgEffect::CMsgEffect() { this->m_digit = 0; this->unknown_01B4 = 0; this->unknown_01B0 = 1; - this->m_drift.x = 0.0f; - this->m_drift.y = 0.0f; - this->m_drift.z = 0.0f; - this->m_velocity.x = 0.0f; - this->m_velocity.y = 0.0f; - this->m_velocity.z = 0.0f; + ClearVector(this->m_drift); + ClearVector(this->m_velocity); this->m_visible = true; }