summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-08-07 10:18:40 +0200
committerGitHub <noreply@github.com>2020-08-07 10:18:40 +0200
commit0d7fa6df3c0e8ef53f06e8aa98d73ebc58f8929b (patch)
treeeccc96f08136cdc1d73c6b6e84a7669e42ef7a19 /src/render
parent456cb01f16ded015803508c98fbd34f563b153ee (diff)
parentabb640c6b6b1c4c1b699d18509c8a344e2be2dd5 (diff)
Merge pull request #676 from aap/master
VU0 collision
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 9d6193b3..8c892be3 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);