# HG changeset patch # User Ritor1 # Date 1359424291 -21600 # Node ID d56c131462858f9a81e16fe474a1e881c30b2b91 # Parent 7ad8eaa172c5792a321bca6263397cb40b949a4c Rotate fixed correct diff -r 7ad8eaa172c5 -r d56c13146285 Game.cpp --- a/Game.cpp Mon Jan 28 23:46:41 2013 +0600 +++ b/Game.cpp Tue Jan 29 07:51:31 2013 +0600 @@ -74,14 +74,14 @@ } else { - if ( pParty->vPosition.x != pParty->vPrevPosition.x | pParty->sRotationY != pParty->sPrevRotationY | pParty->vPosition.y != pParty->vPrevPosition.z - | pParty->sRotationX != pParty->sPrevRotationX | pParty->vPosition.z != pParty->vPrevPosition.y | pParty->sEyelevel != pParty->sPrevEyelevel ) + if ( pParty->vPosition.x != pParty->vPrevPosition.x | pParty->sRotationY != pParty->sPrevRotationY | pParty->vPosition.y != pParty->vPrevPosition.y + | pParty->sRotationX != pParty->sPrevRotationX | pParty->vPosition.z != pParty->vPrevPosition.z | pParty->sEyelevel != pParty->sPrevEyelevel ) pParty->uFlags |= 2u; - pParty->vPrevPosition.x = pParty->vPosition.x; - pParty->vPrevPosition.y = pParty->vPosition.z; + pParty->vPrevPosition = pParty->vPosition; + pParty->vPrevPosition.y = pParty->vPosition.y; //v0 = &pRenderer; pParty->sPrevRotationY = pParty->sRotationY; - pParty->vPrevPosition.z = pParty->vPosition.y; + pParty->vPrevPosition.z = pParty->vPosition.z; pParty->sPrevRotationX = pParty->sRotationX; pParty->sPrevEyelevel = pParty->sEyelevel; pRenderer->BeginSceneD3D(); diff -r 7ad8eaa172c5 -r d56c13146285 Outdoor.cpp --- a/Outdoor.cpp Mon Jan 28 23:46:41 2013 +0600 +++ b/Outdoor.cpp Tue Jan 29 07:51:31 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 - ((unsigned __int64)(v3 * (signed __int64)pParty->field_18) >> 16); + pIndoorCamera->pos.y = pParty->vPosition.y - pParty->field_18 * ((stru_5C6E00->SinCos(pParty->sRotationY)) >> 16); pIndoorCamera->pos.z = pParty->vPosition.z + pParty->sEyelevel; if ( v2 || pRenderer->pRenderD3D ) {