diff Game.cpp @ 77:7ad8eaa172c5

Rotate fixed
author Ritor1
date Mon, 28 Jan 2013 23:46:41 +0600
parents 6ef241d53522
children d56c13146285
line wrap: on
line diff
--- a/Game.cpp	Mon Jan 28 14:52:18 2013 +0600
+++ b/Game.cpp	Mon Jan 28 23:46:41 2013 +0600
@@ -74,11 +74,11 @@
   }
   else
   {
-    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 )
+    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 )
       pParty->uFlags |= 2u;
-    pParty->vPrevPosition = pParty->vPosition;
-    pParty->vPrevPosition.y = pParty->vPosition.y;
+    pParty->vPrevPosition.x = pParty->vPosition.x;
+    pParty->vPrevPosition.y = pParty->vPosition.z;
     //v0 = &pRenderer;
     pParty->sPrevRotationY = pParty->sRotationY;
     pParty->vPrevPosition.z = pParty->vPosition.y;