diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-02-16 03:15:58 +0100 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-02-17 13:57:50 +0100 |
commit | ff92b822b673e77c9fa9af6ecbab5745a6ff01d8 (patch) | |
tree | 757d2859d10e97cd59474decd744405ba7af37fd /src/control/Script.cpp | |
parent | Merge pull request #326 from erorcun/erorcun (diff) | |
download | re3-ff92b822b673e77c9fa9af6ecbab5745a6ff01d8.tar re3-ff92b822b673e77c9fa9af6ecbab5745a6ff01d8.tar.gz re3-ff92b822b673e77c9fa9af6ecbab5745a6ff01d8.tar.bz2 re3-ff92b822b673e77c9fa9af6ecbab5745a6ff01d8.tar.lz re3-ff92b822b673e77c9fa9af6ecbab5745a6ff01d8.tar.xz re3-ff92b822b673e77c9fa9af6ecbab5745a6ff01d8.tar.zst re3-ff92b822b673e77c9fa9af6ecbab5745a6ff01d8.zip |
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r-- | src/control/Script.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 84d4f179..ab22cc7b 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -1729,7 +1729,7 @@ int8 CRunningScript::ProcessCommands100To199(int32 command) else if (ScriptParams[0] == PEDTYPE_EMERGENCY || ScriptParams[0] == PEDTYPE_FIREMAN) ped = new CEmergencyPed(ScriptParams[1]); else - ped = new CCivilianPed(ScriptParams[0], ScriptParams[1]); + ped = new CCivilianPed((ePedType)ScriptParams[0], ScriptParams[1]); ped->CharCreatedBy = MISSION_CHAR; ped->bRespondsToThreats = false; ped->bAllowMedicsToReviveMe = false; @@ -2768,7 +2768,7 @@ int8 CRunningScript::ProcessCommands200To299(int32 command) else if (ScriptParams[1] == PEDTYPE_EMERGENCY || ScriptParams[1] == PEDTYPE_FIREMAN) pPed = new CEmergencyPed(ScriptParams[2]); else - pPed = new CCivilianPed(ScriptParams[1], ScriptParams[2]); + pPed = new CCivilianPed((ePedType)ScriptParams[1], ScriptParams[2]); pPed->CharCreatedBy = MISSION_CHAR; pPed->bRespondsToThreats = false; pPed->bAllowMedicsToReviveMe = false; @@ -3963,7 +3963,7 @@ int8 CRunningScript::ProcessCommands400To499(int32 command) else if (ScriptParams[1] == PEDTYPE_EMERGENCY || ScriptParams[1] == PEDTYPE_FIREMAN) pPed = new CEmergencyPed(ScriptParams[2]); else - pPed = new CCivilianPed(ScriptParams[1], ScriptParams[2]); + pPed = new CCivilianPed((ePedType)ScriptParams[1], ScriptParams[2]); pPed->CharCreatedBy = MISSION_CHAR; pPed->bRespondsToThreats = false; pPed->bAllowMedicsToReviveMe = false; @@ -7360,7 +7360,7 @@ int8 CRunningScript::ProcessCommands800To899(int32 command) CZoneInfo zoneinfo; CTheZones::GetZoneInfoForTimeOfDay(&CWorld::Players[CWorld::PlayerInFocus].GetPos(), &zoneinfo); int mi; - int pedtype = PEDTYPE_COP; + ePedType pedtype = PEDTYPE_COP; int attempt = 0; while (pedtype != PEDTYPE_CIVMALE && pedtype != PEDTYPE_CIVFEMALE && attempt < 5) { mi = CPopulation::ChooseCivilianOccupation(zoneinfo.pedGroup); |