mirror of
https://github.com/halpz/re3.git
synced 2025-06-28 18:56:18 +00:00
merge master to miami
This commit is contained in:
@ -4105,7 +4105,9 @@ CPed::PedSetOutCarCB(CAnimBlendAssociation *animAssoc, void *arg)
|
||||
|
||||
if (veh->pDriver == ped) {
|
||||
veh->RemoveDriver();
|
||||
#ifndef FIX_BUGS // RemoveDriver does it anyway
|
||||
veh->SetStatus(STATUS_ABANDONED);
|
||||
#endif
|
||||
if (veh->m_nDoorLock == CARLOCK_LOCKED_INITIALLY)
|
||||
veh->m_nDoorLock = CARLOCK_UNLOCKED;
|
||||
if (ped->m_nPedType == PEDTYPE_COP && veh->IsLawEnforcementVehicle())
|
||||
|
@ -254,13 +254,12 @@ CPedStats::LoadPedStats(void)
|
||||
float fleeDist, headingChangeRate, attackStrength, defendWeakness;
|
||||
int fear, temper, lawfullness, sexiness, flags;
|
||||
|
||||
|
||||
type = 0;
|
||||
buf = new char[16 * 1024];
|
||||
|
||||
CFileMgr::SetDir("DATA");
|
||||
buflen = CFileMgr::LoadFile("PEDSTATS.DAT", (uint8*)buf, 16 * 1024, "r");
|
||||
CFileMgr::SetDir("");
|
||||
CFileMgr::SetDir("DATA");
|
||||
buflen = CFileMgr::LoadFile("PEDSTATS.DAT", (uint8*)buf, 16 * 1024, "r");
|
||||
CFileMgr::SetDir("");
|
||||
|
||||
for(bp = 0; bp < buflen; ){
|
||||
// read file line by line
|
||||
|
Reference in New Issue
Block a user