summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-07-29 11:17:53 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2020-07-29 11:17:53 +0200
commit1803dcc873df329282adab46e1d42baa4b6ee45b (patch)
treed78ac699caa9124338701a5e413b70379204c8a3 /src/core
parentNULL->nil (diff)
downloadre3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.gz
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.bz2
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.lz
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.xz
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.tar.zst
re3-1803dcc873df329282adab46e1d42baa4b6ee45b.zip
Diffstat (limited to '')
-rw-r--r--src/core/Cam.cpp4
-rw-r--r--src/core/Collision.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp
index df36270a..c37e6b33 100644
--- a/src/core/Cam.cpp
+++ b/src/core/Cam.cpp
@@ -3958,7 +3958,7 @@ CCam::Process_Debug(const CVector&, float, float, float)
if(CPad::GetPad(1)->GetLeftShockJustDown() && gbBigWhiteDebugLightSwitchedOn)
CShadows::StoreShadowToBeRendered(SHADOWTYPE_ADDITIVE, gpShadowExplosionTex, &Source,
12.0f, 0.0f, 0.0f, -12.0f,
- 128, 128, 128, 128, 1000.0f, false, 1.0f);
+ 128, 128, 128, 128, 1000.0f, false, 1.0f, NULL, false);
if(CHud::m_Wants_To_Draw_Hud){
char str[256];
@@ -4103,7 +4103,7 @@ CCam::Process_Editor(const CVector&, float, float, float)
if(CPad::GetPad(1)->GetLeftShockJustDown() && gbBigWhiteDebugLightSwitchedOn)
CShadows::StoreShadowToBeRendered(SHADOWTYPE_ADDITIVE, gpShadowExplosionTex, &Source,
12.0f, 0.0f, 0.0f, -12.0f,
- 128, 128, 128, 128, 1000.0f, false, 1.0f);
+ 128, 128, 128, 128, 1000.0f, false, 1.0f, NULL, false);
if(CHud::m_Wants_To_Draw_Hud){
char str[256];
diff --git a/src/core/Collision.h b/src/core/Collision.h
index 09abaa1c..d79352b5 100644
--- a/src/core/Collision.h
+++ b/src/core/Collision.h
@@ -74,6 +74,9 @@ struct CColTrianglePlane
void Set(const CVector *v, CColTriangle &tri);
void GetNormal(CVector &n) const { n = normal; }
+ float GetNormalX() const { return normal.x; }
+ float GetNormalY() const { return normal.y; }
+ float GetNormalZ() const { return normal.z; }
float CalcPoint(const CVector &v) const { return DotProduct(normal, v) - dist; };
};