diff options
-rw-r--r-- | src/core/main.cpp | 4 | ||||
-rw-r--r-- | src/render/Hud.cpp | 4 | ||||
-rw-r--r-- | src/weapons/WeaponEffects.cpp | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/src/core/main.cpp b/src/core/main.cpp index 6560cbda..48e0ff76 100644 --- a/src/core/main.cpp +++ b/src/core/main.cpp @@ -890,6 +890,8 @@ if(gbRenderWorld1) if(gbRenderRoads) CRenderer::RenderRoads(); + CRenderer::RenderPeds(); + // not sure where to put these since LCS has no underwater entities if(gbRenderBoats) CRenderer::RenderBoats(); @@ -923,8 +925,6 @@ bool FredIsInFirstPersonCam(void) { return true; } // this seems to give the bes void RenderEffects_new(void) { - CRenderer::RenderPeds(); - CShadows::RenderStaticShadows(); // CRenderer::GenerateEnvironmentMap CShadows::RenderStoredShadows(); diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp index ed78ac4c..239d0de4 100644 --- a/src/render/Hud.cpp +++ b/src/render/Hud.cpp @@ -360,7 +360,11 @@ void CHud::Draw() RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void*)TRUE); RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, (void*)FALSE); RwRenderStateSet(rwRENDERSTATESRCBLEND, (void*)rwBLENDSRCALPHA); +#ifdef FIX_BUGS + RwRenderStateSet(rwRENDERSTATEDESTBLEND, (void*)rwBLENDINVSRCALPHA); +#else RwRenderStateSet(rwRENDERSTATEDESTBLEND, (void*)rwBLENDINVDESTALPHA); +#endif RwRenderStateSet(rwRENDERSTATETEXTURERASTER, RwTextureGetRaster(gpLaserDotTex)); #ifdef FIX_BUGS int intensity = CGeneral::GetRandomNumberInRange(0, 37); 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; |