comparison mm7_5.cpp @ 554:9caf59edb1ee

Cave and Temple load and even doesn't crash (for a while).
author Nomad
date Mon, 04 Mar 2013 22:44:41 +0200
parents 9d3d8091251b
children 81856e97664f
comparison
equal deleted inserted replaced
552:bee46636df95 554:9caf59edb1ee
11559 v59 = pIndoor->GetSector(v98, v100, v102); 11559 v59 = pIndoor->GetSector(v98, v100, v102);
11560 v60 = pIndoor->pSectors; 11560 v60 = pIndoor->pSectors;
11561 v61 = 116 * v59; 11561 v61 = 116 * v59;
11562 sDepthb = 0; 11562 sDepthb = 0;
11563 for ( i = 116 * v59; 11563 for ( i = 116 * v59;
11564 sDepthb < *(__int16 *)((char *)&pIndoor->pSectors->field_C + v61) 11564 sDepthb < *(__int16 *)((char *)&pIndoor->pSectors->uNumWalls + v61)
11565 + 2 * *(__int16 *)((char *)&pIndoor->pSectors->uNumFloors + v61); 11565 + 2 * *(__int16 *)((char *)&pIndoor->pSectors->uNumFloors + v61);
11566 ++sDepthb ) 11566 ++sDepthb )
11567 { 11567 {
11568 v62 = &pIndoor->pFaces[(*(unsigned __int16 **)((char *)&v60->pWalls + v61))[sDepthb]]; 11568 v62 = &pIndoor->pFaces[(*(unsigned __int16 **)((char *)&v60->pWalls + v61))[sDepthb]];
11569 if ( v62->TwoSided() 11569 if ( v62->TwoSided()
11713 v87 = pIndoor->GetSector(v99, v101, v103); 11713 v87 = pIndoor->GetSector(v99, v101, v103);
11714 v88 = pIndoor->pSectors; 11714 v88 = pIndoor->pSectors;
11715 v89 = 116 * v87; 11715 v89 = 116 * v87;
11716 v162 = 0; 11716 v162 = 0;
11717 v112 = v89; 11717 v112 = v89;
11718 if ( *(__int16 *)((char *)&pIndoor->pSectors->field_C + v89) 11718 if ( *(__int16 *)((char *)&pIndoor->pSectors->uNumWalls + v89)
11719 + 2 * *(__int16 *)((char *)&pIndoor->pSectors->uNumFloors + v89) > 0 ) 11719 + 2 * *(__int16 *)((char *)&pIndoor->pSectors->uNumFloors + v89) > 0 )
11720 break; 11720 break;
11721 LABEL_148: 11721 LABEL_148:
11722 ++a5c; 11722 ++a5c;
11723 if ( a5c >= 2 ) 11723 if ( a5c >= 2 )
11793 } 11793 }
11794 v89 = v112; 11794 v89 = v112;
11795 LABEL_145: 11795 LABEL_145:
11796 v88 = pIndoor->pSectors; 11796 v88 = pIndoor->pSectors;
11797 ++v162; 11797 ++v162;
11798 if ( v162 >= *(__int16 *)((char *)&pIndoor->pSectors->field_C + v89) 11798 if ( v162 >= *(__int16 *)((char *)&pIndoor->pSectors->uNumWalls + v89)
11799 + 2 * *(__int16 *)((char *)&pIndoor->pSectors->uNumFloors + v89) ) 11799 + 2 * *(__int16 *)((char *)&pIndoor->pSectors->uNumFloors + v89) )
11800 goto LABEL_148; 11800 goto LABEL_148;
11801 } 11801 }
11802 } 11802 }
11803 Vec3_int_::Rotate(32, stru_5C6E00->uIntegerHalfPi + v4, 0, v97, &pOut.x, &pOut.y, &outz); 11803 Vec3_int_::Rotate(32, stru_5C6E00->uIntegerHalfPi + v4, 0, v97, &pOut.x, &pOut.y, &outz);