summaryrefslogtreecommitdiff
path: root/src/render/Coronas.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-09-26 14:21:51 +0300
committerSergeanur <s.anureev@yandex.ua>2020-09-26 14:23:34 +0300
commit05e65baabe3e941cbbb546f546bae8719974b00f (patch)
tree1304cfef13a7ad479a21f9a11acbd41eaa412827 /src/render/Coronas.cpp
parent3f0a80f7c75e62a868362a0ab95b0497b41768c9 (diff)
Fix coronas reflections
Diffstat (limited to 'src/render/Coronas.cpp')
-rw-r--r--src/render/Coronas.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/Coronas.cpp b/src/render/Coronas.cpp
index d2d229f9..33c3f4bf 100644
--- a/src/render/Coronas.cpp
+++ b/src/render/Coronas.cpp
@@ -476,7 +476,11 @@ CCoronas::RenderReflections(void)
int intensity = distanceFade*heightFade * 230.0 * CWeather::WetRoads;
CSprite::RenderBufferedOneXLUSprite(
+#ifdef FIX_BUGS
+ spriteCoors.x, spriteCoors.y, spriteCoors.z,
+#else
spriteCoors.x, spriteCoors.y, RwIm2DGetNearScreenZ(),
+#endif
spritew * aCoronas[i].size * 0.75f,
spriteh * aCoronas[i].size * 2.0f,
(intensity * CCoronas::aCoronas[i].red)>>8,