changeset 104:41145af69341

5.01.13
author Ritor1
date Tue, 05 Feb 2013 19:08:22 +0600
parents d56c13146285
children 56e11be29db1
files Outdoor.cpp Render.cpp
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Outdoor.cpp	Tue Jan 29 07:51:31 2013 +0600
+++ b/Outdoor.cpp	Tue Feb 05 19:08:22 2013 +0600
@@ -61,7 +61,7 @@
   pIndoorCamera->pos.x = pParty->vPosition.x
                       - ((unsigned __int64)(stru_5C6E00->SinCos(pParty->sRotationY)
                                           * (signed __int64)pParty->field_18) >> 16);
-  v3 = stru_5C6E00->SinCos(pParty->sRotationY - stru_5C6E00->uIntegerHalfPi);
+  //v3 = stru_5C6E00->SinCos(pParty->sRotationY - stru_5C6E00->uIntegerHalfPi);
   pIndoorCamera->field_4C = v1;
   pIndoorCamera->pos.y = pParty->vPosition.y - pParty->field_18 * ((stru_5C6E00->SinCos(pParty->sRotationY)) >> 16);
   pIndoorCamera->pos.z = pParty->vPosition.z + pParty->sEyelevel;
--- a/Render.cpp	Tue Jan 29 07:51:31 2013 +0600
+++ b/Render.cpp	Tue Feb 05 19:08:22 2013 +0600
@@ -1026,9 +1026,9 @@
   int v125; // [sp+6Ch] [bp-8h]@9
   int v126; // [sp+70h] [bp-4h]@9
 
-  v105 = pIndoorCamera->sRotationY / ((signed int)stru_5C6E00->uIntegerHalfPi / 2);
-  v0 = stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerDoublePi - pIndoorCamera->sRotationY);
-  v1 = stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerPi + v0);
+  v105 = pIndoorCamera->sRotationY / (stru_5C6E00->uIntegerHalfPi / 2);
+  v0 = stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerDoublePi - pIndoorCamera->sRotationY);//1536
+  v1 = stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerPi + v0);//512
   v124 = ((pIndoorCamera->uMapGridCellX << 16) + 3 * stru_5C6E00->SinCos(
                                  stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerPi + v0))) >> 16;
   v123 = ((pIndoorCamera->uMapGridCellZ << 16)