Skip to content

Commit 4fa33ba

Browse files
committed
Spawn Fire Around Player fix
Doesn't spawn / create fires as the player anymore as it was causing them to boost the wanted level really fast
1 parent ce7b569 commit 4fa33ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/gtasa/effects/custom/player/SpawnFireAroundPlayerEffect.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class SpawnFireAroundPlayerEffect : public EffectBase
4444
p.y += inst->Random (-5.0f, 5.0f);
4545
p.z = CWorld::FindGroundZForCoord (p.x, p.y);
4646
auto *fire
47-
= gFireManager.StartFire (p, 1.0f, 0, player, 6000, 0, 1);
47+
= gFireManager.StartFire (p, 1.0f, 0, nullptr, 6000, 0, 1);
4848
fireCoords.emplace_back (fire);
4949
spawnFireTimer -= SPAWN_FIRE_TIME;
5050
}
@@ -60,8 +60,7 @@ class SpawnFireAroundPlayerEffect : public EffectBase
6060
if (pointInRadius (ped->GetPosition (), fire->m_vecPosition,
6161
1.5f))
6262
{
63-
gFireManager.StartFire (ped, fire->m_pEntityCreator,
64-
1.0f, 0, 500, 0);
63+
gFireManager.StartFire (ped, nullptr, 1.0f, 0, 500, 0);
6564
}
6665
}
6766
}

0 commit comments

Comments
 (0)