diff mm7_6.cpp @ 323:d720a13e2273

Very basic picking & entering houses
author Nomad
date Wed, 20 Feb 2013 08:23:12 +0200
parents 5a66be213cff
children 672b83584b0f
line wrap: on
line diff
--- a/mm7_6.cpp	Wed Feb 20 04:36:14 2013 +0200
+++ b/mm7_6.cpp	Wed Feb 20 08:23:12 2013 +0200
@@ -4513,9 +4513,9 @@
         }
         else
         {
-          v155 = stru_5C6E00->SinCos(pParty->sRotationY);
+          v155 = stru_5C6E00->Cos(pParty->sRotationY);
           uRequiredMana = pParty->vPosition.x + sub_42EBBE(2048, v155);
-          v156 = stru_5C6E00->_42EBDB(pParty->sRotationY);
+          v156 = stru_5C6E00->Sin(pParty->sRotationY);
           LODWORD(v727) = pParty->vPosition.y + sub_42EBBE(2048, v156);
           v154 = pParty->vPosition.z;
         }
@@ -4917,9 +4917,9 @@
         }
         else
         {
-          v212 = stru_5C6E00->SinCos(pParty->sRotationY);
+          v212 = stru_5C6E00->Cos(pParty->sRotationY);
           LODWORD(v718) = pParty->vPosition.x + sub_42EBBE(2048, v212);
-          v213 = stru_5C6E00->_42EBDB(pParty->sRotationY);
+          v213 = stru_5C6E00->Sin(pParty->sRotationY);
           v214 = sub_42EBBE(2048, v213);
           v211 = pParty->vPosition.z;
           v713 = pParty->vPosition.y + v214;
@@ -7817,9 +7817,9 @@
 // 42EBBE: using guessed type int __fastcall sub_42EBBE(int, int);
 
 //----- (0042EBDB) --------------------------------------------------------
-int stru193_math::_42EBDB(int angle)
+int stru193_math::Sin(int angle)
 {
-  return SinCos(angle - this->uIntegerHalfPi);
+  return Cos(angle - this->uIntegerHalfPi);
 }
 
 //----- (0042ECB5) --------------------------------------------------------
@@ -8400,11 +8400,11 @@
   v12 = 0;
   if ( a4 )
   {
-    a4a = stru_5C6E00->SinCos(angle);
-    v13 = (unsigned __int64)(a4a * (signed __int64)stru_5C6E00->SinCos(pitch)) >> 16;
-    a4b = stru_5C6E00->SinCos(angle - stru_5C6E00->uIntegerHalfPi);
-    a5a = (unsigned __int64)(a4b * (signed __int64)stru_5C6E00->SinCos(pitch)) >> 16;
-    v14 = stru_5C6E00->SinCos(pitch - stru_5C6E00->uIntegerHalfPi);
+    a4a = stru_5C6E00->Cos(angle);
+    v13 = (unsigned __int64)(a4a * (signed __int64)stru_5C6E00->Cos(pitch)) >> 16;
+    a4b = stru_5C6E00->Sin(angle);
+    a5a = (unsigned __int64)(a4b * (signed __int64)stru_5C6E00->Cos(pitch)) >> 16;
+    v14 = stru_5C6E00->Sin(pitch);
     v9->vVelocity.x = (unsigned int)(v13 * v11) >> 16;
     v9->vVelocity.y = (unsigned int)(a5a * v11) >> 16;
     v12 = (unsigned int)(v14 * v11) >> 16;