comparison Render.cpp @ 149:2b0c652cc165

12.02.13
author Ritor1
date Tue, 12 Feb 2013 10:17:11 +0600
parents 77ad59c17864
children d92c78ab54fe
comparison
equal deleted inserted replaced
148:77ad59c17864 149:2b0c652cc165
1 #include <assert.h>
2
1 #include "Render.h" 3 #include "Render.h"
2 #include "OutdoorCamera.h" 4 #include "OutdoorCamera.h"
3 #include "IndoorCamera.h" 5 #include "IndoorCamera.h"
4 #include "Outdoor.h" 6 #include "Outdoor.h"
5 #include "Party.h" 7 #include "Party.h"
1822 for (unsigned int k = 0; k < 4; ++k) 1824 for (unsigned int k = 0; k < 4; ++k)
1823 { 1825 {
1824 memcpy(&array_50AC10[k], &array_73D150[k], sizeof(struct RenderVertexSoft)); 1826 memcpy(&array_50AC10[k], &array_73D150[k], sizeof(struct RenderVertexSoft));
1825 array_50AC10[k].flt_20 = 1.0 / (array_73D150[k].vWorldViewPosition.x + 0.0000001000000011686097); 1827 array_50AC10[k].flt_20 = 1.0 / (array_73D150[k].vWorldViewPosition.x + 0.0000001000000011686097);
1826 } 1828 }
1829
1830 assert(v6 < 1000); // many random crashes here
1827 pRenderer->DrawTerrainPolygon(v8, pBitmaps_LOD->pHardwareTextures[v6]); 1831 pRenderer->DrawTerrainPolygon(v8, pBitmaps_LOD->pHardwareTextures[v6]);
1828 --pOutdoorCamera->numStru148s; 1832 --pOutdoorCamera->numStru148s;
1829 --pOutdoorCamera->field_44; 1833 --pOutdoorCamera->field_44;
1830 } 1834 }
1831 } 1835 }