[saco] Match CHud__DrawRadar_Hook()

* Implement/match `FUNC_100A24C0()`
This commit is contained in:
RD42
2024-10-13 21:41:25 +08:00
parent 7e2b851f13
commit a968ac7f1a

View File

@ -99,6 +99,18 @@ void ProcessHudScaleFix()
} }
} }
void FUNC_100A24C0()
{
if(bSomeHudScaleFixFlag == true)
{
*(DWORD*)0x859520 = dwHudScaleX;
*(DWORD*)0x859524 = dwHudScaleY;
*CRadar__radarHeight = 76.0f;
*CRadar__radarWidth = 94.0f;
bSomeHudScaleFixFlag = false;
}
}
NUDE CHud__DrawRadar_Hook() NUDE CHud__DrawRadar_Hook()
{ {
__asm pushad __asm pushad
@ -115,14 +127,7 @@ NUDE CHud__DrawRadar_Hook()
pushad pushad
} }
if(bHudScaleFix) FUNC_100A24C0();
{
*(DWORD*)0x859520 = dwHudScaleX;
*(DWORD*)0x859524 = dwHudScaleY;
*CRadar__radarHeight = 76.0;
*CRadar__radarWidth = 94.0;
bHudScaleFix = false;
}
__asm __asm
{ {