summaryrefslogtreecommitdiffstats
path: root/src/core/re3.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-09-12 10:08:15 +0200
committerGitHub <noreply@github.com>2019-09-12 10:08:15 +0200
commit4299e307d606da8c40a4d28c08628ff0da54a6d8 (patch)
tree790c66ed4088dc8b4bb7071dd40e6f03750819ec /src/core/re3.cpp
parentMerge pull request #203 from Nick007J/master (diff)
parentWorld and Peds (diff)
downloadre3-4299e307d606da8c40a4d28c08628ff0da54a6d8.tar
re3-4299e307d606da8c40a4d28c08628ff0da54a6d8.tar.gz
re3-4299e307d606da8c40a4d28c08628ff0da54a6d8.tar.bz2
re3-4299e307d606da8c40a4d28c08628ff0da54a6d8.tar.lz
re3-4299e307d606da8c40a4d28c08628ff0da54a6d8.tar.xz
re3-4299e307d606da8c40a4d28c08628ff0da54a6d8.tar.zst
re3-4299e307d606da8c40a4d28c08628ff0da54a6d8.zip
Diffstat (limited to 'src/core/re3.cpp')
-rw-r--r--src/core/re3.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp
index 9737fddb..19b3c691 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -141,10 +141,9 @@ SpawnCar(int id)
static void
LetThemFollowYou(void) {
- CPed* player = (CPed*) FindPlayerPed();
+ CPed *player = (CPed*) FindPlayerPed();
for (int i = 0; i < player->m_numNearPeds; i++) {
-
- CPed* nearPed = player->m_nearPeds[i];
+ CPed *nearPed = player->m_nearPeds[i];
if (nearPed && !nearPed->IsPlayer()) {
nearPed->SetObjective(OBJECTIVE_FOLLOW_PED_IN_FORMATION, (void*)player);
nearPed->m_pedFormation = rand() & 7;