summaryrefslogtreecommitdiffstats
path: root/src/core/re3.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-09-12 12:12:22 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-09-12 12:12:22 +0200
commit571e65db4f12424a089918abd03580144991f745 (patch)
treef35b09e3aa0cfd06535ea6eacab67e893a28fc82 /src/core/re3.cpp
parentDragCarToPoint (diff)
parentMerge pull request #204 from erorcun/erorcun (diff)
downloadre3-571e65db4f12424a089918abd03580144991f745.tar
re3-571e65db4f12424a089918abd03580144991f745.tar.gz
re3-571e65db4f12424a089918abd03580144991f745.tar.bz2
re3-571e65db4f12424a089918abd03580144991f745.tar.lz
re3-571e65db4f12424a089918abd03580144991f745.tar.xz
re3-571e65db4f12424a089918abd03580144991f745.tar.zst
re3-571e65db4f12424a089918abd03580144991f745.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;