[saco] Match CRemotePlayer::FUNC_10014540; it re-creates the map marker when there is no ped

This commit is contained in:
ricardoofnl
2026-09-03 03:03:39 +07:00
parent 606b5d37f1
commit b23f356def
3 changed files with 21 additions and 0 deletions
+1
View File
@@ -84,6 +84,7 @@ public:
void ReleaseAnimation(char *szAnimFile);
void ToggleRadar(int iToggle);
void DisplayGameText(char *szStr,int iTime,int iSize);
DWORD FUNC_100A0D90(int a1, float fX, float fY, float fZ, int a5, int a6); // .text:100A0D90
void SetGravity(float fGravity);
void EnableClock(BYTE byteClock);
void EnableZoneNames(BYTE byteEnable);
+19
View File
@@ -232,6 +232,25 @@ void CRemotePlayer::FUNC_10017610(char *szText)
//----------------------------------------------------
void CRemotePlayer::FUNC_10014540(short a1, short a2, short a3)
{
field_1E9 = 1;
if(field_1F9) {
pGame->DisableMarker(field_1F9);
field_1F9 = 0;
}
if(m_pPlayerPed) return;
field_1F9 = pGame->FUNC_100A0D90(0, (float)a1, (float)a2, (float)a3, m_PlayerID, 0);
field_1ED = a1;
field_1F1 = a2;
field_1F5 = a3;
}
//----------------------------------------------------
void CRemotePlayer::FUNC_10014500(int a1)
{
if(!a1) {
+1
View File
@@ -78,6 +78,7 @@ public:
void FUNC_100143A0(); // .text:100143A0
void FUNC_10014500(int a1); // .text:10014500
void FUNC_10014540(short a1, short a2, short a3); // .text:10014540
void FUNC_10017610(char *szText); // .text:10017610
void FUNC_100150D0(VECTOR *pPos, VECTOR *pMoveSpeed); // .text:100150D0
void FUNC_100155E0(int a1, VECTOR *pPos, VECTOR *pMoveSpeed); // .text:100155E0