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:
parent
e7cd4d4840
commit
86648ea6b8
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue