Mercurial > mm7
diff Vis.cpp @ 676:ecfb1b3c9a39
BLV: when standing right on the portal (orange wall) everything looks fine
author | Nomad |
---|---|
date | Fri, 15 Mar 2013 04:13:24 +0200 |
parents | 5cfb5dadf330 |
children | 066e2b29b30f |
line wrap: on
line diff
--- a/Vis.cpp Thu Mar 14 23:44:03 2013 +0200 +++ b/Vis.cpp Fri Mar 15 04:13:24 2013 +0200 @@ -349,9 +349,9 @@ v5 = 0; thisa = this; v17 = 0; - for ( a1.flt_2C = 0.0; v17 < (signed int)pBspRenderer->uNumFaceIDs; ++v17 ) + for ( a1.flt_2C = 0.0; v17 < (signed int)pBspRenderer->num_faces; ++v17 ) { - v6 = pBspRenderer->pFaceIDs[2 * v5]; + v6 = pBspRenderer->faces[v5].uFaceID; if ( v6 >= 0 ) { if ( v6 < (signed int)pIndoor->uNumFaces ) @@ -611,7 +611,7 @@ //float a5a; // [sp+30h] [bp+18h]@10 //float a5b; // [sp+30h] [bp+18h]@13 - if (a5->TwoSided() || a5->Invisible()) + if (a5->Portal() || a5->Invisible()) return false; @@ -1849,9 +1849,9 @@ result = 0; thisa = this; - for ( i = 0; i < (signed int)pBspRenderer->uNumFaceIDs; ++i ) + for ( i = 0; i < (signed int)pBspRenderer->num_faces; ++i ) { - v5 = pBspRenderer->pFaceIDs[2 * result]; + v5 = pBspRenderer->faces[result].uFaceID; if ( v5 >= 0 ) { if ( v5 < (signed int)pIndoor->uNumFaces )