Skip to content

Commit

Permalink
position fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ermaccer committed Oct 11, 2021
1 parent c3f9d60 commit 9432d61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MK11Hook/code/mk11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ void MK11Hooks::HookSetSelectScreen(int64 ptr, PLAYER_NUM plr, int teamNo, char
{
if (plr <= 1 && teamNo <= 3)
{
int64 chr = 120 * ((int)teamNo + 4i64 * (int)plr) + ptr + 448;
int64 chr = 120 * ((int)teamNo + 4 * (int)plr) + ptr + 448;

if (TheMenu->m_nCurrentCharModifier == MODIFIER_SCREEN && (TheMenu->m_bPlayer1Modifier || TheMenu->m_bPlayer2Modifier))
{
Expand Down Expand Up @@ -363,7 +363,7 @@ void GetCharacterPosition(FVector * vec, PLAYER_NUM plr)
{
int64 object = GetInfo(plr);
int64 ptr = *(int64*)(object + 32);
((int64(__fastcall*)(int64, FVector*))_addr(0x141150910))(ptr, vec);
((int64(__fastcall*)(int64, FVector*))_addr(0x1411509E0))(ptr, vec);
}

void HideHUD()
Expand Down

0 comments on commit 9432d61

Please sign in to comment.