diff Outdoor.cpp @ 120:fe0e317c0de0

Camera rotation fixed. Sorta
author Nomad
date Sun, 10 Feb 2013 23:43:28 +0200
parents be3c07c98861
children 3471df3713e2
line wrap: on
line diff
--- a/Outdoor.cpp	Sun Feb 10 23:14:42 2013 +0200
+++ b/Outdoor.cpp	Sun Feb 10 23:43:28 2013 +0200
@@ -60,10 +60,10 @@
   pIndoorCamera->sRotationY = pParty->sRotationY;
   pIndoorCamera->pos.x = pParty->vPosition.x
                       - ((unsigned __int64)(stru_5C6E00->SinCos(pParty->sRotationY)
-                                          * (signed __int64)pParty->field_18) >> 16);
+                                          * (signed __int64)pParty->y_rotation_granularity) >> 16);
   //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.y = pParty->vPosition.y - pParty->y_rotation_granularity * ((stru_5C6E00->SinCos(pParty->sRotationY)) >> 16);
   pIndoorCamera->pos.z = pParty->vPosition.z + pParty->sEyelevel;
   if ( v2 || pRenderer->pRenderD3D )
   {