Mercurial > mm7
comparison Render.cpp @ 1344:65379a50e4eb
Portals in indoor (continue)
author | Ritor1 |
---|---|
date | Thu, 11 Jul 2013 17:47:12 +0600 |
parents | 9749edd941c6 |
children | 613c77e51e38 |
comparison
equal
deleted
inserted
replaced
1339:8bfdc44cebfd | 1344:65379a50e4eb |
---|---|
564 unnamed_6BE060[0] = pOutdoorCamera->uNumSpans; | 564 unnamed_6BE060[0] = pOutdoorCamera->uNumSpans; |
565 if (pOutdoorCamera->numStru148s >= 1999) | 565 if (pOutdoorCamera->numStru148s >= 1999) |
566 return; | 566 return; |
567 | 567 |
568 array_77EC08[1999]._48607B(&stru_8019C8); | 568 array_77EC08[1999]._48607B(&stru_8019C8); |
569 array_77EC08[1999].ptr_38->_48694B(); | 569 array_77EC08[1999].ptr_38->sky_48694B(); |
570 | 570 |
571 if (pOutdoor->uMainTile_BitmapID == -1) | 571 if (pOutdoor->uMainTile_BitmapID == -1) |
572 { | 572 { |
573 array_77EC08[1999].pTexture = nullptr; | 573 array_77EC08[1999].pTexture = nullptr; |
574 return; | 574 return; |
587 / ((double)pOutdoorCamera->int_fov_rad + 8192.0) | 587 / ((double)pOutdoorCamera->int_fov_rad + 8192.0) |
588 + (double)pViewport->uScreenCenterY); | 588 + (double)pViewport->uScreenCenterY); |
589 cos((double)pIndoorCamera->sRotationX * 0.0030664064); | 589 cos((double)pIndoorCamera->sRotationX * 0.0030664064); |
590 sin((double)pIndoorCamera->sRotationX * 0.0030664064); | 590 sin((double)pIndoorCamera->sRotationX * 0.0030664064); |
591 array_77EC08[1999]._48607B(&stru_8019C8); | 591 array_77EC08[1999]._48607B(&stru_8019C8); |
592 array_77EC08[1999].ptr_38->_48694B(); | 592 array_77EC08[1999].ptr_38->sky_48694B(); |
593 | 593 |
594 if (pOutdoor->uSky_TextureID == -1) | 594 if (pOutdoor->uSky_TextureID == -1) |
595 { | 595 { |
596 array_77EC08[1999].pTexture = nullptr; | 596 array_77EC08[1999].pTexture = nullptr; |
597 return; | 597 return; |
1725 } | 1725 } |
1726 } | 1726 } |
1727 //-------------------------------------------------------------------------------------------------------------------- | 1727 //-------------------------------------------------------------------------------------------------------------------- |
1728 | 1728 |
1729 // | 1729 // |
1730 for (unsigned int z = 0; z < 128; ++z) | 1730 for (unsigned int z = 0; z < 127; ++z) |
1731 { | 1731 { |
1732 for (unsigned int x = 0; x < 128; ++x) | 1732 for (unsigned int x = 0; x < 127; ++x) |
1733 { | 1733 { |
1734 pTile = &array_77EC08[pOutdoorCamera->numStru148s]; | 1734 pTile = &array_77EC08[pOutdoorCamera->numStru148s]; |
1735 pTile->flags = 0; | 1735 pTile->flags = 0; |
1736 pTile->field_32 = 0; | 1736 pTile->field_32 = 0; |
1737 pTile->uTileBitmapID = pOutdoor->DoGetTileTexture(x, z); | 1737 pTile->uTileBitmapID = pOutdoor->DoGetTileTexture(x, z); |