diff options
author | aap <aap@papnet.eu> | 2020-07-27 15:38:12 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-07-27 15:38:12 +0200 |
commit | 2e8048d0feacbfb5a8e3d75be8d00b3f8d45c3be (patch) | |
tree | 2fce94f95b4f39656cc2dc2a76c93573793a3bea /src/render | |
parent | heli fixes (diff) | |
download | re3-2e8048d0feacbfb5a8e3d75be8d00b3f8d45c3be.tar re3-2e8048d0feacbfb5a8e3d75be8d00b3f8d45c3be.tar.gz re3-2e8048d0feacbfb5a8e3d75be8d00b3f8d45c3be.tar.bz2 re3-2e8048d0feacbfb5a8e3d75be8d00b3f8d45c3be.tar.lz re3-2e8048d0feacbfb5a8e3d75be8d00b3f8d45c3be.tar.xz re3-2e8048d0feacbfb5a8e3d75be8d00b3f8d45c3be.tar.zst re3-2e8048d0feacbfb5a8e3d75be8d00b3f8d45c3be.zip |
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/Glass.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/render/Glass.cpp b/src/render/Glass.cpp index ac892ddb..ee36bad3 100644 --- a/src/render/Glass.cpp +++ b/src/render/Glass.cpp @@ -424,10 +424,10 @@ CGlass::RenderEntityInGlass(CEntity *entity) ASSERT(col!=nil); if ( col->numTriangles >= 2 ) { - CVector a = object->GetMatrix() * col->vertices[0]; - CVector b = object->GetMatrix() * col->vertices[1]; - CVector c = object->GetMatrix() * col->vertices[2]; - CVector d = object->GetMatrix() * col->vertices[3]; + CVector a = object->GetMatrix() * col->vertices[0].Get(); + CVector b = object->GetMatrix() * col->vertices[1].Get(); + CVector c = object->GetMatrix() * col->vertices[2].Get(); + CVector d = object->GetMatrix() * col->vertices[3].Get(); if ( object->bGlassCracked ) { @@ -613,10 +613,10 @@ CGlass::WindowRespondsToCollision(CEntity *entity, float amount, CVector speed, CColModel *col = object->GetColModel(); ASSERT(col!=nil); - CVector a = object->GetMatrix() * col->vertices[0]; - CVector b = object->GetMatrix() * col->vertices[1]; - CVector c = object->GetMatrix() * col->vertices[2]; - CVector d = object->GetMatrix() * col->vertices[3]; + CVector a = object->GetMatrix() * col->vertices[0].Get(); + CVector b = object->GetMatrix() * col->vertices[1].Get(); + CVector c = object->GetMatrix() * col->vertices[2].Get(); + CVector d = object->GetMatrix() * col->vertices[3].Get(); float minx = Min(Min(a.x, b.x), Min(c.x, d.x)); float maxx = Max(Max(a.x, b.x), Max(c.x, d.x)); |