diff Chest.cpp @ 1407:d4f57df4c299

PlayerSpeechID and uSpeakingCharacter
author Ritor1
date Tue, 23 Jul 2013 16:34:00 +0600
parents d071e0e9ba75
children 204cce84300b
line wrap: on
line diff
--- a/Chest.cpp	Tue Jul 23 15:41:45 2013 +0600
+++ b/Chest.cpp	Tue Jul 23 16:34:00 2013 +0600
@@ -52,7 +52,7 @@
   int pObjectZ; // edi@21
   double dir_x; // st7@23
   double dir_y; // st6@23
-  double v20; // st7@23
+  double length_vector; // st7@23
   int pDepth; // ecx@26
   Vec3_int_ v; // ST4C_12@28
   bool flag_shout; // edi@28
@@ -116,8 +116,8 @@
       dir_x = (double)pParty->vPosition.x - (double)pObjectX;
       dir_y = (double)pParty->vPosition.y - (double)pObjectY;
       dir_z = ( (double)pParty->sEyelevel + (double)pParty->vPosition.z ) - (double)pObjectZ;
-      v20 = sqrt( (dir_x * dir_x) + (dir_y * dir_y) + (dir_z * dir_z) );
-      if ( v20 <= 1.0 )
+      length_vector = sqrt( (dir_x * dir_x) + (dir_y * dir_y) + (dir_z * dir_z) );
+      if ( length_vector <= 1.0 )
       {
         *(float *)&sRotX = 0.0;
         *(float *)&sRotY = 0.0;
@@ -129,8 +129,8 @@
         sRotY = stru_5C6E00->Atan2(dir_y * dir_y, (signed __int64)dir_z);
       }
       pDepth = 256;
-      if ( v20 < 256.0 )
-        pDepth = (signed __int64)v20 / 4;
+      if ( length_vector < 256.0 )
+        pDepth = (signed __int64)length_vector / 4;
       v.x = pObjectX;
       v.y = pObjectY;
       v.z = pObjectZ;
@@ -170,7 +170,7 @@
       {
         qword_A750D8 = 256i64;
         PlayerSpeechID = SPEECH_5;
-        word_A750E2 = uActiveCharacter;
+        uSpeakingCharacter = uActiveCharacter;
       }
       pIcons_LOD->RemoveTexturesPackFromTextureList();
       dword_507CD8 = 0;