diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-08-07 11:34:41 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-08-07 11:34:41 +0200 |
commit | 7d8ffa9ebd32257d6aa59e27cd25a657a85613da (patch) | |
tree | 0eff46681a3524fd86a63bc8a0eb65b3c7409b5b /src/render/Shadows.cpp | |
parent | Merge pull request #670 from Fire-Head/miami (diff) | |
parent | Merge pull request #675 from erorcun/master (diff) | |
download | re3-7d8ffa9ebd32257d6aa59e27cd25a657a85613da.tar re3-7d8ffa9ebd32257d6aa59e27cd25a657a85613da.tar.gz re3-7d8ffa9ebd32257d6aa59e27cd25a657a85613da.tar.bz2 re3-7d8ffa9ebd32257d6aa59e27cd25a657a85613da.tar.lz re3-7d8ffa9ebd32257d6aa59e27cd25a657a85613da.tar.xz re3-7d8ffa9ebd32257d6aa59e27cd25a657a85613da.tar.zst re3-7d8ffa9ebd32257d6aa59e27cd25a657a85613da.zip |
Diffstat (limited to 'src/render/Shadows.cpp')
-rw-r--r-- | src/render/Shadows.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render/Shadows.cpp b/src/render/Shadows.cpp index c22afa76..9b864d27 100644 --- a/src/render/Shadows.cpp +++ b/src/render/Shadows.cpp @@ -1585,7 +1585,9 @@ CShadows::CastShadowEntityXY(CEntity *pEntity, float fStartX, float fStartY, fl CColTrianglePlane *pColTriPlanes = pCol->trianglePlanes; ASSERT(pColTriPlanes != nil); - 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 != nil); |