diff options
author | erorcun <erayorcunus@gmail.com> | 2020-09-29 22:00:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-29 22:00:50 +0200 |
commit | f9dc00a458684ef88e733f5d0245b5e827de82c1 (patch) | |
tree | 5a9d57bca1c005b9bbd9db14e582b13ea3ebe77c /src/render | |
parent | Merge pull request #727 from erorcun/miami (diff) | |
parent | now fixed properly (diff) | |
download | re3-f9dc00a458684ef88e733f5d0245b5e827de82c1.tar re3-f9dc00a458684ef88e733f5d0245b5e827de82c1.tar.gz re3-f9dc00a458684ef88e733f5d0245b5e827de82c1.tar.bz2 re3-f9dc00a458684ef88e733f5d0245b5e827de82c1.tar.lz re3-f9dc00a458684ef88e733f5d0245b5e827de82c1.tar.xz re3-f9dc00a458684ef88e733f5d0245b5e827de82c1.tar.zst re3-f9dc00a458684ef88e733f5d0245b5e827de82c1.zip |
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/Particle.cpp | 4 | ||||
-rw-r--r-- | src/render/WaterLevel.cpp | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/render/Particle.cpp b/src/render/Particle.cpp index db40781e..2f0c3809 100644 --- a/src/render/Particle.cpp +++ b/src/render/Particle.cpp @@ -1261,7 +1261,11 @@ void CParticle::Update() { if ( CTimer::GetFrameCounter() & 10 ) { +#ifdef FIX_BUGS + if ( FindPlayerPed() && FindPlayerPed()->GetWeapon()->m_eWeaponType == WEAPONTYPE_MINIGUN ) +#else if ( FindPlayerPed()->GetWeapon()->m_eWeaponType == WEAPONTYPE_MINIGUN ) +#endif { AddParticle(PARTICLE_HEATHAZE, particle->m_vecPosition, CVector(0.0f, 0.0f, 0.0f)); } diff --git a/src/render/WaterLevel.cpp b/src/render/WaterLevel.cpp index 13f52334..efcb6c14 100644 --- a/src/render/WaterLevel.cpp +++ b/src/render/WaterLevel.cpp @@ -2745,7 +2745,11 @@ CWaterLevel::RenderSeaBirds() void CWaterLevel::RenderShipsOnHorizon() { +#ifdef FIX_BUGS + CVector cur_pos = FindPlayerCoors(); +#else CVector cur_pos = FindPlayerPed()->GetPosition(); +#endif static CVector prev_pos(0.0f, 0.0f, 0.0f); static CVector prev_front(0.0f, 0.0f, 0.0f); @@ -2847,7 +2851,11 @@ CWaterLevel::HandleSeaLifeForms() void CWaterLevel::HandleBeachToysStuff(void) { +#ifdef FIX_BUGS + CVector cur_pos = FindPlayerCoors(); +#else CVector cur_pos = FindPlayerPed()->GetPosition(); +#endif static bool bBeachBallInit = true; static CVector FirstBeachBallPos = cur_pos; |