summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-08-15 17:06:03 +0200
committerGitHub <noreply@github.com>2019-08-15 17:06:03 +0200
commitb246274d9fc198c331a19a5dafc8afad9d911dc7 (patch)
tree35bac433fe9a98acdaae40c62cb8753ce422aa54 /src/render
parentMerge pull request #190 from Fire-Head/master (diff)
parentMerge branch 'master' of git://github.com/GTAmodding/re3 into erorcun (diff)
downloadre3-b246274d9fc198c331a19a5dafc8afad9d911dc7.tar
re3-b246274d9fc198c331a19a5dafc8afad9d911dc7.tar.gz
re3-b246274d9fc198c331a19a5dafc8afad9d911dc7.tar.bz2
re3-b246274d9fc198c331a19a5dafc8afad9d911dc7.tar.lz
re3-b246274d9fc198c331a19a5dafc8afad9d911dc7.tar.xz
re3-b246274d9fc198c331a19a5dafc8afad9d911dc7.tar.zst
re3-b246274d9fc198c331a19a5dafc8afad9d911dc7.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Draw.cpp1
-rw-r--r--src/render/Draw.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/render/Draw.cpp b/src/render/Draw.cpp
index beb3443d..862fc024 100644
--- a/src/render/Draw.cpp
+++ b/src/render/Draw.cpp
@@ -11,6 +11,7 @@ float CDraw::ms_fAspectRatio = DEFAULT_ASPECT_RATIO;
float &CDraw::ms_fNearClipZ = *(float*)0x8E2DC4;
float &CDraw::ms_fFarClipZ = *(float*)0x9434F0;
float &CDraw::ms_fFOV = *(float*)0x5FBC6C;
+float &CDraw::ms_fLODDistance = *(float*)0x8F2C30;
uint8 &CDraw::FadeValue = *(uint8*)0x95CD68;
uint8 &CDraw::FadeRed = *(uint8*)0x95CD90;
diff --git a/src/render/Draw.h b/src/render/Draw.h
index 75b2b75f..50e1e294 100644
--- a/src/render/Draw.h
+++ b/src/render/Draw.h
@@ -16,7 +16,8 @@ private:
static float &ms_fNearClipZ;
static float &ms_fFarClipZ;
static float &ms_fFOV;
- static float ms_fLODDistance; // unused
+public:
+ static float &ms_fLODDistance; // set but unused?
#ifdef ASPECT_RATIO_SCALE
// we use this variable to scale a lot of 2D elements
@@ -24,7 +25,6 @@ private:
static float ms_fAspectRatio;
#endif
-public:
static uint8 &FadeValue;
static uint8 &FadeRed;
static uint8 &FadeGreen;