From c15329c6e1d688ca336dca11be5b94bfad4e3643 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 02:33:29 +0000 Subject: [PATCH] Decompile fn_21100 (CGameActor::UpdateWorldCell) Batch #6922 by System4z: 0 byte-identical, 1 confirmed by peer review. - fn_21100 CGameActor::UpdateWorldCell: logic confirmed by peer review Peer-reviewed-by: eAthena, alisonrag Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Actors/GameActor.cpp | 15 +++++++++++++++ Source/Contents/Actors/GameActor.h | 2 ++ 2 files changed, 17 insertions(+) diff --git a/Source/Contents/Actors/GameActor.cpp b/Source/Contents/Actors/GameActor.cpp index c9be3799..35802795 100644 --- a/Source/Contents/Actors/GameActor.cpp +++ b/Source/Contents/Actors/GameActor.cpp @@ -3,6 +3,7 @@ #include "Client/Mode/CGameMode.h" #include "Client/Mode/ModeMgr.h" #include "Client/Session.h" +#include "Contents/ActorNameCard.h" #include "Contents/Actors/ActorStateFlags.h" #include "Contents/Actors/GroundScope.h" #include "Contents/Actors/MercenaryAI.h" @@ -11,16 +12,30 @@ #include "Contents/Jobs/JobInheritance.h" #include "Contents/Effects/EffectTypes.h" #include "Contents/MapSkyMgr.h" +#include "Contents/MessageTable.h" #include "Utility/Math/AffineMatrix.h" #include "Render/Renderer.h" #include "Resource/Sprites/ActionResource.h" #include "UI/Gauges/UIPcGage.h" #include "UI/Window/UIWindowMgr.h" +#include "Utility/Text/FormatString.h" #include #include #include +// OFFSET: 0x00CB1930 + +// OFFSET: 0x00CB2040 +// FUNCTION: fn_21100 +void CGameActor::UpdateWorldCell() { + CGameMode* mode = static_cast(g_modeMgr.GetGameMode()); + int column; + int row; + mode->WorldCell(this->render.position.x, this->render.position.z, column, row); + mode->SendMsg(0xC, this->render.accountId, column, row, 0); +} + // OFFSET: 0x00CA83A0 // FUNCTION: fn_20988 CGameActor::CGameActor() diff --git a/Source/Contents/Actors/GameActor.h b/Source/Contents/Actors/GameActor.h index 7d031257..f327f9c4 100644 --- a/Source/Contents/Actors/GameActor.h +++ b/Source/Contents/Actors/GameActor.h @@ -268,6 +268,8 @@ public: void ProcessViewCheck(); void ProcessActorEffects(); void UpdateMotionFrame(); + void UpdateDamageMessages(); + void UpdateWorldCell(); void ProcessHitMessage(CGameObject* sender, const ActorHitInfo* info, int unused1, int unused2); int GetEffectCounter(int effectId); float GetNameOffset();