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).
This commit is contained in:
ragnarok-clanker 2026-11-05 16:09:13 +00:00
commit 86648ea6b8

View file

@ -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;
}