diff options
Diffstat (limited to 'src/weapons')
-rw-r--r-- | src/weapons/ProjectileInfo.cpp | 4 | ||||
-rw-r--r-- | src/weapons/WeaponEffects.cpp | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/weapons/ProjectileInfo.cpp b/src/weapons/ProjectileInfo.cpp index 71cd9cfb..754da5f7 100644 --- a/src/weapons/ProjectileInfo.cpp +++ b/src/weapons/ProjectileInfo.cpp @@ -296,10 +296,8 @@ CProjectileInfo::Update() CParticle::AddParticle(PARTICLE_TEARGAS, projectilePos, CVector(-0.2f, tearGasOffset, 0.0f), 0, 0.0f, 0, 0, 0, 0); CParticle::AddParticle(PARTICLE_TEARGAS, projectilePos, CVector(tearGasOffset, tearGasOffset, 0.0f), 0, 0.0f, 0, 0, 0, 0); - // TODO(Miami): SetPedsChoking - /*if ( CTimer::GetTimeInMilliseconds() & 0x200 ) + if ( CTimer::GetTimeInMilliseconds() & 0x200 ) CWorld::SetPedsChoking(projectilePos.x, projectilePos.y, projectilePos.z, 6.0f, gaProjectileInfo[i].m_pSource); - */ } if (gaProjectileInfo[i].m_eWeaponType == WEAPONTYPE_ROCKET) { diff --git a/src/weapons/WeaponEffects.cpp b/src/weapons/WeaponEffects.cpp index 7a5be722..42d4f52c 100644 --- a/src/weapons/WeaponEffects.cpp +++ b/src/weapons/WeaponEffects.cpp @@ -94,7 +94,11 @@ CWeaponEffects::Render(void) RwRenderStateSet(rwRENDERSTATEZTESTENABLE, (void *)FALSE); RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void *)TRUE); RwRenderStateSet(rwRENDERSTATESRCBLEND, (void *)rwBLENDSRCALPHA); +#ifdef FIX_BUGS + RwRenderStateSet(rwRENDERSTATEDESTBLEND, (void *)rwBLENDINVSRCALPHA); +#else RwRenderStateSet(rwRENDERSTATEDESTBLEND, (void *)rwBLENDINVDESTALPHA); +#endif RwRenderStateSet(rwRENDERSTATETEXTURERASTER, (void *)gpCrossHairRaster); RwV3d pos; |