missing changes

This commit is contained in:
Nikolay Korolev 2021-01-07 18:36:02 +03:00
parent 416a898943
commit 2173ceae95
6 changed files with 36 additions and 36 deletions

View File

@ -73,7 +73,7 @@ uint16 CTheScripts::NumScriptDebugLines;
uint16 CTheScripts::NumberOfIntroRectanglesThisFrame; uint16 CTheScripts::NumberOfIntroRectanglesThisFrame;
uint16 CTheScripts::NumberOfIntroTextLinesThisFrame; uint16 CTheScripts::NumberOfIntroTextLinesThisFrame;
uint8 CTheScripts::UseTextCommands; uint8 CTheScripts::UseTextCommands;
CMissionCleanup CTheScripts::MissionCleanup; CMissionCleanup CTheScripts::MissionCleanUp;
CUpsideDownCarCheck CTheScripts::UpsideDownCars; CUpsideDownCarCheck CTheScripts::UpsideDownCars;
CStuckCarCheck CTheScripts::StuckCars; CStuckCarCheck CTheScripts::StuckCars;
uint16 CTheScripts::CommandsExecuted; uint16 CTheScripts::CommandsExecuted;
@ -1801,7 +1801,7 @@ void CTheScripts::Init()
ScriptsArray[i].Init(); ScriptsArray[i].Init();
ScriptsArray[i].AddScriptToList(&pIdleScripts); ScriptsArray[i].AddScriptToList(&pIdleScripts);
} }
MissionCleanup.Init(); MissionCleanUp.Init();
UpsideDownCars.Init(); UpsideDownCars.Init();
StuckCars.Init(); StuckCars.Init();
CFileMgr::SetDir("data"); CFileMgr::SetDir("data");
@ -3217,7 +3217,7 @@ int8 CRunningScript::ProcessCommands100To199(int32 command)
ScriptParams[0] = CPools::GetPedPool()->GetIndex(ped); ScriptParams[0] = CPools::GetPedPool()->GetIndex(ped);
StoreParameters(&m_nIp, 1); StoreParameters(&m_nIp, 1);
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.AddEntityToList(ScriptParams[0], CLEANUP_CHAR); CTheScripts::MissionCleanUp.AddEntityToList(ScriptParams[0], CLEANUP_CHAR);
return 0; return 0;
} }
case COMMAND_DELETE_CHAR: case COMMAND_DELETE_CHAR:
@ -3243,7 +3243,7 @@ int8 CRunningScript::ProcessCommands100To199(int32 command)
--CPopulation::ms_nTotalMissionPeds; --CPopulation::ms_nTotalMissionPeds;
} }
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.RemoveEntityFromList(ScriptParams[0], CLEANUP_CHAR); CTheScripts::MissionCleanUp.RemoveEntityFromList(ScriptParams[0], CLEANUP_CHAR);
return 0; return 0;
} }
case COMMAND_CHAR_WANDER_DIR: case COMMAND_CHAR_WANDER_DIR:
@ -3462,7 +3462,7 @@ int8 CRunningScript::ProcessCommands100To199(int32 command)
ScriptParams[0] = handle; ScriptParams[0] = handle;
StoreParameters(&m_nIp, 1); StoreParameters(&m_nIp, 1);
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.AddEntityToList(handle, CLEANUP_CAR); CTheScripts::MissionCleanUp.AddEntityToList(handle, CLEANUP_CAR);
return 0; return 0;
} }
case COMMAND_DELETE_CAR: case COMMAND_DELETE_CAR:
@ -3475,7 +3475,7 @@ int8 CRunningScript::ProcessCommands100To199(int32 command)
delete car; delete car;
} }
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.RemoveEntityFromList(ScriptParams[0], CLEANUP_CAR); CTheScripts::MissionCleanUp.RemoveEntityFromList(ScriptParams[0], CLEANUP_CAR);
return 0; return 0;
} }
case COMMAND_CAR_GOTO_COORDINATES: case COMMAND_CAR_GOTO_COORDINATES:
@ -3792,7 +3792,7 @@ int8 CRunningScript::ProcessCommands200To299(int32 command)
return 0; return 0;
if (strcmp(m_abScriptName, "love3") == 0) /* A Drop in the Ocean */ if (strcmp(m_abScriptName, "love3") == 0) /* A Drop in the Ocean */
CPickups::RemoveAllFloatingPickups(); CPickups::RemoveAllFloatingPickups();
CTheScripts::MissionCleanup.Process(); CTheScripts::MissionCleanUp.Process();
return 0; return 0;
} }
case COMMAND_STORE_CAR_CHAR_IS_IN: case COMMAND_STORE_CAR_CHAR_IS_IN:
@ -3815,7 +3815,7 @@ int8 CRunningScript::ProcessCommands200To299(int32 command)
pOld->bIsLocked = false; pOld->bIsLocked = false;
CCarCtrl::NumRandomCars++; CCarCtrl::NumRandomCars++;
CCarCtrl::NumMissionCars--; CCarCtrl::NumMissionCars--;
CTheScripts::MissionCleanup.RemoveEntityFromList(CTheScripts::StoreVehicleIndex, CLEANUP_CAR); CTheScripts::MissionCleanUp.RemoveEntityFromList(CTheScripts::StoreVehicleIndex, CLEANUP_CAR);
} }
} }
@ -3826,14 +3826,14 @@ int8 CRunningScript::ProcessCommands200To299(int32 command)
CCarCtrl::NumMissionCars++; CCarCtrl::NumMissionCars++;
CCarCtrl::NumRandomCars--; CCarCtrl::NumRandomCars--;
CTheScripts::StoreVehicleWasRandom = true; CTheScripts::StoreVehicleWasRandom = true;
CTheScripts::MissionCleanup.AddEntityToList(CTheScripts::StoreVehicleIndex, CLEANUP_CAR); CTheScripts::MissionCleanUp.AddEntityToList(CTheScripts::StoreVehicleIndex, CLEANUP_CAR);
break; break;
case PARKED_VEHICLE: case PARKED_VEHICLE:
pCurrent->VehicleCreatedBy = MISSION_VEHICLE; pCurrent->VehicleCreatedBy = MISSION_VEHICLE;
CCarCtrl::NumMissionCars++; CCarCtrl::NumMissionCars++;
CCarCtrl::NumParkedCars--; CCarCtrl::NumParkedCars--;
CTheScripts::StoreVehicleWasRandom = true; CTheScripts::StoreVehicleWasRandom = true;
CTheScripts::MissionCleanup.AddEntityToList(CTheScripts::StoreVehicleIndex, CLEANUP_CAR); CTheScripts::MissionCleanUp.AddEntityToList(CTheScripts::StoreVehicleIndex, CLEANUP_CAR);
break; break;
case MISSION_VEHICLE: case MISSION_VEHICLE:
case PERMANENT_VEHICLE: case PERMANENT_VEHICLE:
@ -3866,7 +3866,7 @@ int8 CRunningScript::ProcessCommands200To299(int32 command)
pOld->bIsLocked = false; pOld->bIsLocked = false;
CCarCtrl::NumRandomCars++; CCarCtrl::NumRandomCars++;
CCarCtrl::NumMissionCars--; CCarCtrl::NumMissionCars--;
CTheScripts::MissionCleanup.RemoveEntityFromList(CTheScripts::StoreVehicleIndex, CLEANUP_CAR); CTheScripts::MissionCleanUp.RemoveEntityFromList(CTheScripts::StoreVehicleIndex, CLEANUP_CAR);
} }
} }
@ -3877,14 +3877,14 @@ int8 CRunningScript::ProcessCommands200To299(int32 command)
CCarCtrl::NumMissionCars++; CCarCtrl::NumMissionCars++;
CCarCtrl::NumRandomCars--; CCarCtrl::NumRandomCars--;
CTheScripts::StoreVehicleWasRandom = true; CTheScripts::StoreVehicleWasRandom = true;
CTheScripts::MissionCleanup.AddEntityToList(CTheScripts::StoreVehicleIndex, CLEANUP_CAR); CTheScripts::MissionCleanUp.AddEntityToList(CTheScripts::StoreVehicleIndex, CLEANUP_CAR);
break; break;
case PARKED_VEHICLE: case PARKED_VEHICLE:
pCurrent->VehicleCreatedBy = MISSION_VEHICLE; pCurrent->VehicleCreatedBy = MISSION_VEHICLE;
CCarCtrl::NumMissionCars++; CCarCtrl::NumMissionCars++;
CCarCtrl::NumParkedCars--; CCarCtrl::NumParkedCars--;
CTheScripts::StoreVehicleWasRandom = true; CTheScripts::StoreVehicleWasRandom = true;
CTheScripts::MissionCleanup.AddEntityToList(CTheScripts::StoreVehicleIndex, CLEANUP_CAR); CTheScripts::MissionCleanUp.AddEntityToList(CTheScripts::StoreVehicleIndex, CLEANUP_CAR);
break; break;
case MISSION_VEHICLE: case MISSION_VEHICLE:
case PERMANENT_VEHICLE: case PERMANENT_VEHICLE:
@ -4035,7 +4035,7 @@ int8 CRunningScript::ProcessCommands200To299(int32 command)
ScriptParams[0] = CPools::GetObjectPool()->GetIndex(pObj); ScriptParams[0] = CPools::GetObjectPool()->GetIndex(pObj);
StoreParameters(&m_nIp, 1); StoreParameters(&m_nIp, 1);
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.AddEntityToList(ScriptParams[0], CLEANUP_OBJECT); CTheScripts::MissionCleanUp.AddEntityToList(ScriptParams[0], CLEANUP_OBJECT);
return 0; return 0;
} }
case COMMAND_DELETE_OBJECT: case COMMAND_DELETE_OBJECT:
@ -4048,7 +4048,7 @@ int8 CRunningScript::ProcessCommands200To299(int32 command)
delete pObj; delete pObj;
} }
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.RemoveEntityFromList(ScriptParams[0], CLEANUP_OBJECT); CTheScripts::MissionCleanUp.RemoveEntityFromList(ScriptParams[0], CLEANUP_OBJECT);
return 0; return 0;
} }
case COMMAND_ADD_SCORE: case COMMAND_ADD_SCORE:
@ -4273,7 +4273,7 @@ int8 CRunningScript::ProcessCommands200To299(int32 command)
ScriptParams[0] = CPools::GetPedPool()->GetIndex(pPed); ScriptParams[0] = CPools::GetPedPool()->GetIndex(pPed);
StoreParameters(&m_nIp, 1); StoreParameters(&m_nIp, 1);
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.AddEntityToList(ScriptParams[0], CLEANUP_CHAR); CTheScripts::MissionCleanUp.AddEntityToList(ScriptParams[0], CLEANUP_CHAR);
return 0; return 0;
} }
case COMMAND_WARP_PLAYER_FROM_CAR_TO_COORD: case COMMAND_WARP_PLAYER_FROM_CAR_TO_COORD:
@ -4359,7 +4359,7 @@ void RetryMission(int type, int unk)
else if (type == 2) { else if (type == 2) {
doingMissionRetry = false; doingMissionRetry = false;
AllowMissionReplay = 6; AllowMissionReplay = 6;
CTheScripts::MissionCleanup.Process(); CTheScripts::MissionCleanUp.Process();
} }
} }

View File

@ -154,10 +154,10 @@ enum {
class CMissionCleanup class CMissionCleanup
{ {
public:
cleanup_entity_struct m_sEntities[MAX_CLEANUP]; cleanup_entity_struct m_sEntities[MAX_CLEANUP];
uint8 m_nCount; uint8 m_nCount;
public:
CMissionCleanup(); CMissionCleanup();
void Init(); void Init();
@ -292,7 +292,7 @@ public:
static CStoredLine aStoredLines[MAX_NUM_STORED_LINES]; static CStoredLine aStoredLines[MAX_NUM_STORED_LINES];
static bool DbgFlag; static bool DbgFlag;
static uint32 OnAMissionFlag; static uint32 OnAMissionFlag;
static CMissionCleanup MissionCleanup; static CMissionCleanup MissionCleanUp;
static CStuckCarCheck StuckCars; static CStuckCarCheck StuckCars;
static CUpsideDownCarCheck UpsideDownCars; static CUpsideDownCarCheck UpsideDownCars;
static int32 StoreVehicleIndex; static int32 StoreVehicleIndex;

View File

@ -1051,7 +1051,7 @@ int8 CRunningScript::ProcessCommands400To499(int32 command)
CPed* pPed = CPools::GetPedPool()->GetAt(ScriptParams[0]); CPed* pPed = CPools::GetPedPool()->GetAt(ScriptParams[0]);
CTheScripts::CleanUpThisPed(pPed); CTheScripts::CleanUpThisPed(pPed);
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.RemoveEntityFromList(ScriptParams[0], CLEANUP_CHAR); CTheScripts::MissionCleanUp.RemoveEntityFromList(ScriptParams[0], CLEANUP_CHAR);
return 0; return 0;
} }
case COMMAND_MARK_CAR_AS_NO_LONGER_NEEDED: case COMMAND_MARK_CAR_AS_NO_LONGER_NEEDED:
@ -1060,7 +1060,7 @@ int8 CRunningScript::ProcessCommands400To499(int32 command)
CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]); CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
CTheScripts::CleanUpThisVehicle(pVehicle); CTheScripts::CleanUpThisVehicle(pVehicle);
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.RemoveEntityFromList(ScriptParams[0], CLEANUP_CAR); CTheScripts::MissionCleanUp.RemoveEntityFromList(ScriptParams[0], CLEANUP_CAR);
return 0; return 0;
} }
case COMMAND_MARK_OBJECT_AS_NO_LONGER_NEEDED: case COMMAND_MARK_OBJECT_AS_NO_LONGER_NEEDED:
@ -1069,7 +1069,7 @@ int8 CRunningScript::ProcessCommands400To499(int32 command)
CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]); CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
CTheScripts::CleanUpThisObject(pObject); CTheScripts::CleanUpThisObject(pObject);
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.RemoveEntityFromList(ScriptParams[0], CLEANUP_OBJECT); CTheScripts::MissionCleanUp.RemoveEntityFromList(ScriptParams[0], CLEANUP_OBJECT);
return 0; return 0;
} }
case COMMAND_DONT_REMOVE_CHAR: case COMMAND_DONT_REMOVE_CHAR:
@ -1077,7 +1077,7 @@ int8 CRunningScript::ProcessCommands400To499(int32 command)
CollectParameters(&m_nIp, 1); CollectParameters(&m_nIp, 1);
CPed* pPed = CPools::GetPedPool()->GetAt(ScriptParams[0]); CPed* pPed = CPools::GetPedPool()->GetAt(ScriptParams[0]);
script_assert(pPed); script_assert(pPed);
CTheScripts::MissionCleanup.RemoveEntityFromList(ScriptParams[0], CLEANUP_CHAR); CTheScripts::MissionCleanUp.RemoveEntityFromList(ScriptParams[0], CLEANUP_CHAR);
return 0; return 0;
} }
case COMMAND_DONT_REMOVE_CAR: case COMMAND_DONT_REMOVE_CAR:
@ -1085,7 +1085,7 @@ int8 CRunningScript::ProcessCommands400To499(int32 command)
CollectParameters(&m_nIp, 1); CollectParameters(&m_nIp, 1);
CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]); CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
script_assert(pVehicle); script_assert(pVehicle);
CTheScripts::MissionCleanup.RemoveEntityFromList(ScriptParams[0], CLEANUP_CAR); CTheScripts::MissionCleanUp.RemoveEntityFromList(ScriptParams[0], CLEANUP_CAR);
return 0; return 0;
} }
case COMMAND_DONT_REMOVE_OBJECT: case COMMAND_DONT_REMOVE_OBJECT:
@ -1093,7 +1093,7 @@ int8 CRunningScript::ProcessCommands400To499(int32 command)
CollectParameters(&m_nIp, 1); CollectParameters(&m_nIp, 1);
CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]); CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
script_assert(pObject); script_assert(pObject);
CTheScripts::MissionCleanup.RemoveEntityFromList(ScriptParams[0], CLEANUP_OBJECT); CTheScripts::MissionCleanUp.RemoveEntityFromList(ScriptParams[0], CLEANUP_OBJECT);
return 0; return 0;
} }
case COMMAND_CREATE_CHAR_AS_PASSENGER: case COMMAND_CREATE_CHAR_AS_PASSENGER:
@ -1165,7 +1165,7 @@ int8 CRunningScript::ProcessCommands400To499(int32 command)
ScriptParams[0] = CPools::GetPedPool()->GetIndex(pPed); ScriptParams[0] = CPools::GetPedPool()->GetIndex(pPed);
StoreParameters(&m_nIp, 1); StoreParameters(&m_nIp, 1);
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.AddEntityToList(ScriptParams[0], CLEANUP_CHAR); CTheScripts::MissionCleanUp.AddEntityToList(ScriptParams[0], CLEANUP_CHAR);
return 0; return 0;
} }
case COMMAND_SET_CHAR_OBJ_KILL_CHAR_ON_FOOT: case COMMAND_SET_CHAR_OBJ_KILL_CHAR_ON_FOOT:

View File

@ -1263,7 +1263,7 @@ int8 CRunningScript::ProcessCommands600To699(int32 command)
ScriptParams[0] = CPools::GetObjectPool()->GetIndex(pObj); ScriptParams[0] = CPools::GetObjectPool()->GetIndex(pObj);
StoreParameters(&m_nIp, 1); StoreParameters(&m_nIp, 1);
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.AddEntityToList(ScriptParams[0], CLEANUP_OBJECT); CTheScripts::MissionCleanUp.AddEntityToList(ScriptParams[0], CLEANUP_OBJECT);
return 0; return 0;
} }
case COMMAND_IS_BOAT: case COMMAND_IS_BOAT:
@ -1799,7 +1799,7 @@ int8 CRunningScript::ProcessCommands700To799(int32 command)
pPed->bRespondsToThreats = false; pPed->bRespondsToThreats = false;
++CPopulation::ms_nTotalMissionPeds; ++CPopulation::ms_nTotalMissionPeds;
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.AddEntityToList(ped_handle, CLEANUP_CHAR); CTheScripts::MissionCleanUp.AddEntityToList(ped_handle, CLEANUP_CHAR);
} }
ScriptParams[0] = ped_handle; ScriptParams[0] = ped_handle;
StoreParameters(&m_nIp, 1); StoreParameters(&m_nIp, 1);
@ -1848,7 +1848,7 @@ int8 CRunningScript::ProcessCommands700To799(int32 command)
pPed->bRespondsToThreats = false; pPed->bRespondsToThreats = false;
++CPopulation::ms_nTotalMissionPeds; ++CPopulation::ms_nTotalMissionPeds;
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.AddEntityToList(ped_handle, CLEANUP_CHAR); CTheScripts::MissionCleanUp.AddEntityToList(ped_handle, CLEANUP_CHAR);
} }
ScriptParams[0] = ped_handle; ScriptParams[0] = ped_handle;
StoreParameters(&m_nIp, 1); StoreParameters(&m_nIp, 1);

View File

@ -148,7 +148,7 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
++CCarCtrl::NumMissionCars; ++CCarCtrl::NumMissionCars;
--CCarCtrl::NumRandomCars; --CCarCtrl::NumRandomCars;
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.AddEntityToList(handle, CLEANUP_CAR); CTheScripts::MissionCleanUp.AddEntityToList(handle, CLEANUP_CAR);
} }
ScriptParams[0] = handle; ScriptParams[0] = handle;
StoreParameters(&m_nIp, 1); StoreParameters(&m_nIp, 1);
@ -180,7 +180,7 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
++CCarCtrl::NumMissionCars; ++CCarCtrl::NumMissionCars;
--CCarCtrl::NumRandomCars; --CCarCtrl::NumRandomCars;
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.AddEntityToList(handle, CLEANUP_CAR); CTheScripts::MissionCleanUp.AddEntityToList(handle, CLEANUP_CAR);
} }
ScriptParams[0] = handle; ScriptParams[0] = handle;
StoreParameters(&m_nIp, 1); StoreParameters(&m_nIp, 1);
@ -594,7 +594,7 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
} }
} }
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.RemoveEntityFromList(ScriptParams[0], CLEANUP_CHAR); CTheScripts::MissionCleanUp.RemoveEntityFromList(ScriptParams[0], CLEANUP_CHAR);
return 0; return 0;
} }
case COMMAND_SET_CHAR_STAY_IN_SAME_PLACE: case COMMAND_SET_CHAR_STAY_IN_SAME_PLACE:
@ -1002,7 +1002,7 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
ScriptParams[0] = CPools::GetPedPool()->GetIndex(ped); ScriptParams[0] = CPools::GetPedPool()->GetIndex(ped);
StoreParameters(&m_nIp, 1); StoreParameters(&m_nIp, 1);
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.AddEntityToList(ScriptParams[0], CLEANUP_CHAR); CTheScripts::MissionCleanUp.AddEntityToList(ScriptParams[0], CLEANUP_CHAR);
return 0; return 0;
} }
case COMMAND_SET_CHAR_OBJ_STEAL_ANY_CAR: case COMMAND_SET_CHAR_OBJ_STEAL_ANY_CAR:

View File

@ -607,7 +607,7 @@ int8 CRunningScript::ProcessCommands1000To1099(int32 command)
ScriptParams[0] = CPools::GetVehiclePool()->GetIndex(pVehicle); ScriptParams[0] = CPools::GetVehiclePool()->GetIndex(pVehicle);
StoreParameters(&m_nIp, 1); StoreParameters(&m_nIp, 1);
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.AddEntityToList(ScriptParams[0], CLEANUP_CAR); CTheScripts::MissionCleanUp.AddEntityToList(ScriptParams[0], CLEANUP_CAR);
return 0; return 0;
} }
case COMMAND_START_BOAT_FOAM_ANIMATION: case COMMAND_START_BOAT_FOAM_ANIMATION:
@ -1121,7 +1121,7 @@ int8 CRunningScript::ProcessCommands1100To1199(int32 command)
pPed->bRespondsToThreats = false; pPed->bRespondsToThreats = false;
++CPopulation::ms_nTotalMissionPeds; ++CPopulation::ms_nTotalMissionPeds;
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.AddEntityToList(ped_handle, CLEANUP_CHAR); CTheScripts::MissionCleanUp.AddEntityToList(ped_handle, CLEANUP_CHAR);
} }
ScriptParams[0] = ped_handle; ScriptParams[0] = ped_handle;
StoreParameters(&m_nIp, 1); StoreParameters(&m_nIp, 1);
@ -1168,7 +1168,7 @@ int8 CRunningScript::ProcessCommands1100To1199(int32 command)
pPed->bRespondsToThreats = false; pPed->bRespondsToThreats = false;
++CPopulation::ms_nTotalMissionPeds; ++CPopulation::ms_nTotalMissionPeds;
if (m_bIsMissionScript) if (m_bIsMissionScript)
CTheScripts::MissionCleanup.AddEntityToList(ped_handle, CLEANUP_CHAR); CTheScripts::MissionCleanUp.AddEntityToList(ped_handle, CLEANUP_CHAR);
} }
ScriptParams[0] = ped_handle; ScriptParams[0] = ped_handle;
StoreParameters(&m_nIp, 1); StoreParameters(&m_nIp, 1);