From 2fcadd277d2523954ed35f10e234bcfdefa341b3 Mon Sep 17 00:00:00 2001 From: Yanis002 <35189056+Yanis002@users.noreply.github.com> Date: Tue, 1 Jul 2025 01:25:08 +0200 Subject: [PATCH] fix playercontrol issue --- include/DTCM/UnkStruct_027e0d38.hpp | 2 +- src/00_Core/Player/PlayerControl.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/DTCM/UnkStruct_027e0d38.hpp b/include/DTCM/UnkStruct_027e0d38.hpp index 352c283f..37532ba8 100644 --- a/include/DTCM/UnkStruct_027e0d38.hpp +++ b/include/DTCM/UnkStruct_027e0d38.hpp @@ -6,7 +6,7 @@ struct UnkStruct_027e0d38_UnkC { /* 00 */ unk32 mUnk_00; - unk32 func_ov000_020a5e9c(void); + s32 func_ov000_020a5e9c(void); }; struct UnkStruct_027e0d38_Unk28 { diff --git a/src/00_Core/Player/PlayerControl.cpp b/src/00_Core/Player/PlayerControl.cpp index 406fe1da..10b41064 100644 --- a/src/00_Core/Player/PlayerControl.cpp +++ b/src/00_Core/Player/PlayerControl.cpp @@ -600,12 +600,10 @@ ARM void PlayerControl::ResetAim() { mAim = gVec3p_ZERO; } -extern "C" s32 func_ov000_020a5e9c(unk32 *param1); - ARM bool PlayerControl::UpdateAimWorld(Vec3p *param1) { Vec3p pos = gPlayerPos; - s32 iVar2 = func_ov000_020a5e9c(&data_027e0d38->mUnk_0c); + s32 iVar2 = data_027e0d38->mUnk_0c.func_ov000_020a5e9c(); if (iVar2 == 0x2f && *(s32 *) (*(s32 *) ((s32) data_027e0f64 + 0x4) + 0x15c) == 0x31) { return this->func_ov024_02178348(param1); }