CPhone, CPlayerInfo, CFire, CWorld

This commit is contained in:
eray orçunus committed 2019-12-06 00:55:23 +03:00
1 parent eea84b86b8
commit dad7782ff0
21 files changed
+554 -139

No files matched your search

+1 -1
View File
@@ -346,7 +346,7 @@ void CReplay::StorePedUpdate(CPed *ped, int id)
pp->matrix.CompressFromFullMatrix(ped->GetMatrix());
pp->assoc_group_id = ped->m_animGroup;
/* Would be more sane to use GetJustIndex(ped->m_pMyVehicle) in following assignment */
if (ped->bInVehicle && ped->m_pMyVehicle)
if (ped->InVehicle())
pp->vehicle_index = (CPools::GetVehiclePool()->GetIndex(ped->m_pMyVehicle) >> 8) + 1;
else
pp->vehicle_index = 0;