diff Render.cpp @ 1641:466c5e15f524

Excess wrapper (IndoorLocation_drawstru) removed.
author Nomad
date Tue, 17 Sep 2013 18:39:32 +0200
parents afc1c3514dd5
children 8971dc85b8fb
line wrap: on
line diff
--- a/Render.cpp	Tue Sep 17 17:40:59 2013 +0200
+++ b/Render.cpp	Tue Sep 17 18:39:32 2013 +0200
@@ -5124,15 +5124,15 @@
   HIDWORD(v69) = pGame->pIndoorCameraD3D->sRotationX;
   HIDWORD(v68) = pGame->pIndoorCameraD3D->vPartyPos.z;
   *(float *)&v74 = (double)pBLVRenderParams->uViewportCenterY;
-  v70 = (signed __int64)((double)(pBLVRenderParams->field_40 * pGame->pIndoorCameraD3D->vPartyPos.z)
-                       / (((double)pBLVRenderParams->field_40 + 16192.0)
+  v70 = (signed __int64)((double)(pBLVRenderParams->fov_rad_fixpoint * pGame->pIndoorCameraD3D->vPartyPos.z)
+                       / (((double)pBLVRenderParams->fov_rad_fixpoint + 16192.0)
                         * 65536.0)
                        + *(float *)&v74);
   v5 = (double)pGame->pIndoorCameraD3D->sRotationX * 0.0030664064;
   *(float *)&v75 = v5;
   v80 = cos(v5) * 16192.0;
   v6 = (signed __int64)(*(float *)&v74
-                      - (double)pBLVRenderParams->field_40
+                      - (double)pBLVRenderParams->fov_rad_fixpoint
                       / ((v80 + 0.0000001)
                        * 65535.0)
                       * (sin(*(float *)&v75) * -16192.0 - (double)SHIDWORD(v68)));