summaryrefslogtreecommitdiffstats
path: root/src/render/Occlusion.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-02 10:38:54 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-02 12:32:25 +0100
commit42e4a068bb1cd363c3ed308e10c2747a6035e2de (patch)
tree7e9ce483e3a9eab7d23ec4c4e6476f22ecfa761e /src/render/Occlusion.cpp
parentPartial controller buttons support (diff)
downloadre3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar
re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.gz
re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.bz2
re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.lz
re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.xz
re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.zst
re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.zip
Diffstat (limited to '')
-rw-r--r--src/render/Occlusion.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/render/Occlusion.cpp b/src/render/Occlusion.cpp
index 2b15e75b..3ea5678c 100644
--- a/src/render/Occlusion.cpp
+++ b/src/render/Occlusion.cpp
@@ -9,6 +9,7 @@
#include "Draw.h"
#include "Timer.h"
#include "RwHelper.h"
+#include "VarConsole.h"
int32 COcclusion::NumOccludersOnMap;
int16 COcclusion::FarAwayList;
@@ -31,20 +32,20 @@ CVector gOccluderCoorsOnScreen[8];
CVector gOccluderCoors[8];
#ifndef MASTER
-bool bDisplayOccDebugStuff;
+bool bDispayOccDebugStuff; // disPAY, yeah
#endif
void
COcclusion::Init(void)
{
NumOccludersOnMap = 0;
+#ifndef MASTER
+ VarConsole.Add("Occlusion debug", &bDispayOccDebugStuff, true);
+#endif
FarAwayList = -1;
NearbyList = -1;
ListWalkThroughFA = -1;
PreviousListWalkThroughFA = -1;
-#ifndef MASTER
- bDisplayOccDebugStuff = false;
-#endif
}
void
@@ -458,7 +459,7 @@ bool COcclusion::IsPositionOccluded(CVector pos, float side) {
RwIm2DVertex vertexbufferT[2];
void COcclusion::Render() {
- if (!bDisplayOccDebugStuff || !(CTimer::GetTimeInMilliseconds() & 0x200))
+ if (!bDispayOccDebugStuff || !(CTimer::GetTimeInMilliseconds() & 0x200))
return;
RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, (void*)TRUE);