summaryrefslogtreecommitdiffstats
path: root/src/render/WaterLevel.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-09-26 20:10:23 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-09-26 20:10:23 +0200
commitf7d5021ac59026435165e97aba869a76cfef1059 (patch)
tree1a57b2e0491be1505f20f99aa38e84232619b53a /src/render/WaterLevel.cpp
parentFix coronas reflections (diff)
downloadre3-f7d5021ac59026435165e97aba869a76cfef1059.tar
re3-f7d5021ac59026435165e97aba869a76cfef1059.tar.gz
re3-f7d5021ac59026435165e97aba869a76cfef1059.tar.bz2
re3-f7d5021ac59026435165e97aba869a76cfef1059.tar.lz
re3-f7d5021ac59026435165e97aba869a76cfef1059.tar.xz
re3-f7d5021ac59026435165e97aba869a76cfef1059.tar.zst
re3-f7d5021ac59026435165e97aba869a76cfef1059.zip
Diffstat (limited to '')
-rw-r--r--src/render/WaterLevel.cpp8
1 files changed, 8 insertions, 0 deletions
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;