summaryrefslogtreecommitdiffstats
path: root/src/core/Camera.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-08-13 16:29:07 +0200
committerGitHub <noreply@github.com>2020-08-13 16:29:07 +0200
commit18647717df2153bdce6805cf9270f8b33019dd0b (patch)
treef23a40ccb7bfb37a53b8814aca20bd5758f72627 /src/core/Camera.cpp
parentMerge pull request #683 from majesticCoding/miami (diff)
parentsun reflection fix (diff)
downloadre3-18647717df2153bdce6805cf9270f8b33019dd0b.tar
re3-18647717df2153bdce6805cf9270f8b33019dd0b.tar.gz
re3-18647717df2153bdce6805cf9270f8b33019dd0b.tar.bz2
re3-18647717df2153bdce6805cf9270f8b33019dd0b.tar.lz
re3-18647717df2153bdce6805cf9270f8b33019dd0b.tar.xz
re3-18647717df2153bdce6805cf9270f8b33019dd0b.tar.zst
re3-18647717df2153bdce6805cf9270f8b33019dd0b.zip
Diffstat (limited to '')
-rw-r--r--src/core/Camera.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/Camera.cpp b/src/core/Camera.cpp
index 2f977a20..df778815 100644
--- a/src/core/Camera.cpp
+++ b/src/core/Camera.cpp
@@ -514,7 +514,12 @@ CCamera::Process(void)
int tableIndex = (int)(DEGTORAD(DrunkAngle)/TWOPI * CParticle::SIN_COS_TABLE_SIZE) & CParticle::SIN_COS_TABLE_SIZE-1;
DrunkAngle += 5.0f;
+#ifndef FIX_BUGS
+ // This just messes up interpolation, probably not what they intended
+ // and multiplying the interpolated FOV is also a bit extreme
+ // so let's not do any of this nonsense
Cams[ActiveCam].FOV *= (1.0f + CMBlur::Drunkness);
+#endif
CamSource.x += -0.02f*CMBlur::Drunkness * CParticle::m_CosTable[tableIndex];
CamSource.y += -0.02f*CMBlur::Drunkness * CParticle::m_SinTable[tableIndex];