diff options
author | aap <aap@papnet.eu> | 2021-01-03 17:01:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-03 17:01:17 +0100 |
commit | 65796459343a01ddd17170104599ae340b90bb1d (patch) | |
tree | d16a5bc09e9cebd006085f30a27dfb3567927ee7 /src/render/Occlusion.cpp | |
parent | Merge pull request #921 from TheOfficialFloW/patch-2 (diff) | |
parent | Pad2 fix (diff) | |
download | re3-65796459343a01ddd17170104599ae340b90bb1d.tar re3-65796459343a01ddd17170104599ae340b90bb1d.tar.gz re3-65796459343a01ddd17170104599ae340b90bb1d.tar.bz2 re3-65796459343a01ddd17170104599ae340b90bb1d.tar.lz re3-65796459343a01ddd17170104599ae340b90bb1d.tar.xz re3-65796459343a01ddd17170104599ae340b90bb1d.tar.zst re3-65796459343a01ddd17170104599ae340b90bb1d.zip |
Diffstat (limited to 'src/render/Occlusion.cpp')
-rw-r--r-- | src/render/Occlusion.cpp | 11 |
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); |