diff Outdoor.cpp @ 77:7ad8eaa172c5

Rotate fixed
author Ritor1
date Mon, 28 Jan 2013 23:46:41 +0600
parents 3b4f8bd48e3b
children d56c13146285
line wrap: on
line diff
--- a/Outdoor.cpp	Mon Jan 28 14:52:18 2013 +0600
+++ b/Outdoor.cpp	Mon Jan 28 23:46:41 2013 +0600
@@ -63,7 +63,7 @@
                                           * (signed __int64)pParty->field_18) >> 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(pIndoorCamera->sRotationY) / 2048.0);
+  pIndoorCamera->pos.y = pParty->vPosition.y - ((unsigned __int64)(v3 * (signed __int64)pParty->field_18) >> 16);
   pIndoorCamera->pos.z = pParty->vPosition.z + pParty->sEyelevel;
   if ( v2 || pRenderer->pRenderD3D )
   {