summaryrefslogtreecommitdiffstats
path: root/src/control/Script8.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-16 16:17:42 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-16 16:17:42 +0100
commitef97134f50639d3e5494a3de243c1d7069e40952 (patch)
tree80211acc1eadaa62e3ae51e51cde5d9e2b049f13 /src/control/Script8.cpp
parentscript6 (diff)
parentMerge branch 'miami' into lcs (diff)
downloadre3-ef97134f50639d3e5494a3de243c1d7069e40952.tar
re3-ef97134f50639d3e5494a3de243c1d7069e40952.tar.gz
re3-ef97134f50639d3e5494a3de243c1d7069e40952.tar.bz2
re3-ef97134f50639d3e5494a3de243c1d7069e40952.tar.lz
re3-ef97134f50639d3e5494a3de243c1d7069e40952.tar.xz
re3-ef97134f50639d3e5494a3de243c1d7069e40952.tar.zst
re3-ef97134f50639d3e5494a3de243c1d7069e40952.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script8.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Script8.cpp b/src/control/Script8.cpp
index 2f52b150..afa213f2 100644
--- a/src/control/Script8.cpp
+++ b/src/control/Script8.cpp
@@ -66,7 +66,7 @@ int8 CRunningScript::ProcessCommands1400To1499(int32 command)
return 0;
case COMMAND_WANTED_STARS_ARE_FLASHING:
{
- CWanted *pWanted = CWorld::Players[CWorld::PlayerInFocus].m_pPed->m_pWanted;
+ CWanted* pWanted = CWorld::Players[CWorld::PlayerInFocus].m_pPed->m_pWanted;
UpdateCompareFlag(pWanted->m_nMinWantedLevel - pWanted->m_nWantedLevel > 0);
return 0;
}
@@ -136,7 +136,7 @@ int8 CRunningScript::ProcessCommands1400To1499(int32 command)
CTheScripts::ReadTextLabelFromScript(&m_nIp, key);
m_nIp += KEY_LENGTH_IN_SCRIPT;
CVector pos = pPlayerInfo->GetPos();
- CZone *infoZone = CTheZones::FindInformationZoneForPosition(&pos);
+ CZone* infoZone = CTheZones::FindInformationZoneForPosition(&pos);
UpdateCompareFlag(strncmp(key, infoZone->name, 8) == 0); // original code doesn't seem to be using strncmp in here and compare 2 ints instead
return 0;
}
@@ -352,7 +352,7 @@ int8 CRunningScript::ProcessCommands1400To1499(int32 command)
case COMMAND_CREATE_DUST_EFFECT_FOR_CUTSCENE_HELI:
{
CollectParameters(&m_nIp, 3);
- CObject *pHeli = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
+ CObject* pHeli = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
bool found = false;
float waterLevel = -1000.0f;
CVector pos = pHeli->GetPosition();