Mercurial > mm7
diff Engine/Graphics/Outdoor.cpp @ 2562:b8a56afc6ba1
new var no_actors, lights_flag, debug_lights, StationaryLights and MobileLights
author | Ritor1 |
---|---|
date | Sun, 17 May 2015 22:42:13 +0600 |
parents | e06a3fe9ad6e |
children | 30eb6dcac768 |
line wrap: on
line diff
--- a/Engine/Graphics/Outdoor.cpp Thu May 14 19:29:28 2015 +0600 +++ b/Engine/Graphics/Outdoor.cpp Sun May 17 22:42:13 2015 +0600 @@ -2926,10 +2926,10 @@ { for ( uint i = 0; i < uNumVertices; i++ ) { - memcpy(&array_50AC10[i], &array_507D30[i], sizeof(array_50AC10[i])); - array_50AC10[i].vWorldViewProjX = (double)pViewport->uScreenCenterX + memcpy(&VertexRenderList[i], &array_507D30[i], sizeof(VertexRenderList[i])); + VertexRenderList[i].vWorldViewProjX = (double)pViewport->uScreenCenterX - ((double)pODMRenderParams->int_fov_rad * array_507D30[i]._rhw) * array_507D30[i].vWorldViewPosition.y; - array_50AC10[i].vWorldViewProjY = (double)pViewport->uScreenCenterY + VertexRenderList[i].vWorldViewProjY = (double)pViewport->uScreenCenterY - ((double)pODMRenderParams->int_fov_rad * array_507D30[i]._rhw) * array_507D30[i].vWorldViewPosition.z; } } @@ -4151,6 +4151,9 @@ unsigned int v75; // [sp+48h] [bp-8h]@1 int uIsOnWater; // [sp+4Ch] [bp-4h]@10 + if(no_actors) + uNumActors = 0; + for (v75 = 0; v75 < uNumActors; ++v75) { if (pActors[v75].uAIState == Removed