summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-08-03 12:58:37 +0200
committeraap <aap@papnet.eu>2020-08-03 17:32:06 +0200
commitabb640c6b6b1c4c1b699d18509c8a344e2be2dd5 (patch)
tree58cecb7517dfd70a4ce5e2f646ff23aa4fa4084d /src/render
parentMove sdk and eax (diff)
downloadre3-abb640c6b6b1c4c1b699d18509c8a344e2be2dd5.tar
re3-abb640c6b6b1c4c1b699d18509c8a344e2be2dd5.tar.gz
re3-abb640c6b6b1c4c1b699d18509c8a344e2be2dd5.tar.bz2
re3-abb640c6b6b1c4c1b699d18509c8a344e2be2dd5.tar.lz
re3-abb640c6b6b1c4c1b699d18509c8a344e2be2dd5.tar.xz
re3-abb640c6b6b1c4c1b699d18509c8a344e2be2dd5.tar.zst
re3-abb640c6b6b1c4c1b699d18509c8a344e2be2dd5.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Shadows.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render/Shadows.cpp b/src/render/Shadows.cpp
index c169c351..9980d678 100644
--- a/src/render/Shadows.cpp
+++ b/src/render/Shadows.cpp
@@ -1027,7 +1027,9 @@ CShadows::CastShadowEntity(CEntity *pEntity, float fStartX, float fStartY, floa
CColTrianglePlane *pColTriPlanes = pCol->trianglePlanes;
ASSERT(pColTriPlanes != NULL);
- if ( Abs(pColTriPlanes[i].normal.z) > 0.1f )
+ CVector normal;
+ pColTriPlanes[i].GetNormal(normal);
+ if ( Abs(normal.z) > 0.1f )
{
CColTriangle *pColTri = pCol->triangles;
ASSERT(pColTri != NULL);