mirror of
https://github.com/halpz/re3.git
synced 2025-06-29 11:36:25 +00:00
more CAutomobile
This commit is contained in:
@ -59,9 +59,9 @@ enum eCarDrivingStyle : uint8
|
||||
|
||||
class CAutoPilot {
|
||||
public:
|
||||
void *m_currentAddress;
|
||||
void *m_startingRouteNode;
|
||||
void *m_PreviousRouteNode;
|
||||
uint32 m_currentAddress;
|
||||
uint32 m_startingRouteNode;
|
||||
uint32 m_PreviousRouteNode;
|
||||
uint32 m_nTotalSpeedScaleFactor;
|
||||
uint32 m_nSpeedScaleFactor;
|
||||
uint32 m_nCurrentPathNodeInfo;
|
||||
|
@ -290,14 +290,14 @@ void CReplay::RecordThisFrame(void)
|
||||
CPed* p = peds->GetSlot(i);
|
||||
if (!p || !p->m_rwObject)
|
||||
continue;
|
||||
if (!p->bRecordedForReplay){
|
||||
if (!p->bHasAlreadyBeenRecorded){
|
||||
tPedHeaderPacket* ph = (tPedHeaderPacket*)&Record.m_pBase[Record.m_nOffset];
|
||||
ph->type = REPLAYPACKET_PED_HEADER;
|
||||
ph->index = i;
|
||||
ph->mi = p->GetModelIndex();
|
||||
ph->pedtype = p->m_nPedType;
|
||||
Record.m_nOffset += sizeof(*ph);
|
||||
p->bRecordedForReplay = true;
|
||||
p->bHasAlreadyBeenRecorded = true;
|
||||
}
|
||||
StorePedUpdate(p, i);
|
||||
}
|
||||
@ -1346,14 +1346,14 @@ void CReplay::MarkEverythingAsNew(void)
|
||||
CVehicle* v = CPools::GetVehiclePool()->GetSlot(i);
|
||||
if (!v)
|
||||
continue;
|
||||
v->bRecordedForReplay = false;
|
||||
v->bHasAlreadyBeenRecorded = false;
|
||||
}
|
||||
i = CPools::GetPedPool()->GetSize();
|
||||
while (i--) {
|
||||
CPed* p = CPools::GetPedPool()->GetSlot(i);
|
||||
if (!p)
|
||||
continue;
|
||||
p->bRecordedForReplay = false;
|
||||
p->bHasAlreadyBeenRecorded = false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user