From 86648ea6b8b8a583ebe51244de68c41cbcc87139 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 16:09:13 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/MiniPartyGrid.cpp, Source/UI/MiniPartyGrid.h Batch #12181 by cremane: 0 byte-identical, 2 confirmed by peer review. - fn_07659 MiniPartyGrid::GetCellPosition: logic confirmed by peer review - fn_07660 MiniPartyGrid::GetWindowPosition: logic confirmed by peer review Peer-reviewed-by: Yommy, gordaoprogramas, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/MiniPartyGrid.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/UI/MiniPartyGrid.cpp b/Source/UI/MiniPartyGrid.cpp index 0eea7acc..b0969f9e 100644 --- a/Source/UI/MiniPartyGrid.cpp +++ b/Source/UI/MiniPartyGrid.cpp @@ -8,18 +8,18 @@ int g_miniPartyCellHeight = 55; // OFFSET: 0x00737EC0 // FUNCTION: fn_07659 MiniPartyGridPoint* MiniPartyGrid::GetCellPosition(MiniPartyGridPoint* position, int index) const { - const int y = this->top + g_miniPartyCellHeight * (index % this->rows); position->x = this->left + g_miniPartyCellWidth * (index / this->rows); - position->y = y; + position->y = this->top + g_miniPartyCellHeight * (index % this->rows); + return position; } // OFFSET: 0x00737EF0 // FUNCTION: fn_07660 MiniPartyGridPoint* MiniPartyGrid::GetWindowPosition(MiniPartyGridPoint* position, int index) const { - const int y = this->top + g_miniPartyCellHeight * (index % this->rows); position->x = this->left + g_miniPartyCellWidth * (index / this->rows); - position->y = y; + position->y = this->top + g_miniPartyCellHeight * (index % this->rows); + return position; }