mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 03:33:04 +08:00
[saco] Implement/match FUNC_10017440, the passenger sync store; the vehicle cache is an inlined CVehiclePool::GetAt
This commit is contained in:
@@ -404,6 +404,25 @@ void CRemotePlayer::FUNC_10017260(BYTE *pSync, int iTime)
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CRemotePlayer::FUNC_10017440(BYTE *pSync)
|
||||
{
|
||||
memcpy(field_AD, pSync, sizeof(field_AD));
|
||||
field_1E7 = *(WORD *)pSync;
|
||||
field_10B = pSync[2] & 0x3F;
|
||||
field_1E1 = (CVehicle *)pNetGame->GetVehiclePool()->GetAt(field_1E7);
|
||||
field_1B0 = pSync[4];
|
||||
field_1AC = pSync[5];
|
||||
field_1B8 = 18;
|
||||
field_1B9 = GetTickCount();
|
||||
field_C = 0;
|
||||
|
||||
if(m_pPlayerPed && !m_pPlayerPed->IsInVehicle()) FUNC_10014800();
|
||||
|
||||
if(field_10A != 18) field_10A = 18;
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CRemotePlayer::FUNC_100148F0()
|
||||
{
|
||||
if(m_pPlayerPed && m_pPlayerPed->IsInVehicle()) {
|
||||
|
||||
@@ -86,6 +86,7 @@ public:
|
||||
void FUNC_100148F0(); // .text:100148F0
|
||||
void FUNC_10014FF0(); // .text:10014FF0
|
||||
void FUNC_10017260(BYTE *pSync, int iTime); // .text:10017260
|
||||
void FUNC_10017440(BYTE *pSync); // .text:10017440
|
||||
void FUNC_10014800(); // .text:10014800
|
||||
void FUNC_10017610(char *szText); // .text:10017610
|
||||
void FUNC_100150D0(VECTOR *pPos, VECTOR *pMoveSpeed); // .text:100150D0
|
||||
|
||||
Reference in New Issue
Block a user