changeset 191:d625cbdf34f0

25.12.12(byte_4ED3D8)
author Ritor1
date Tue, 25 Dec 2012 22:24:33 +0600
parents d7bd52a35e52
children 1f1de8a1e988
files Player.cpp mm7_data.cpp mm7_data.h
diffstat 3 files changed, 13 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Player.cpp	Mon Dec 24 07:48:44 2012 +0600
+++ b/Player.cpp	Tue Dec 25 22:24:33 2012 +0600
@@ -573,7 +573,7 @@
   Player *pPlayer; // edi@1
   int v4; // eax@4
   signed int v5; // esi@4
-  unsigned __int8 *v6; // ebx@4
+  short *v6; // ebx@4
   signed int v7; // ecx@5
   unsigned __int8 v8; // al@6
   int v9; // eax@10
@@ -604,13 +604,13 @@
   v4 = a2;//102
   v5 = 0;
   pSoundId = 0;
-  v6 = &byte_4ED3D8[8 * v4];//byte_4ED280
+  v6 = &byte_4ED3D8[8 * v4];//byte_4ED280 &byte_4ED3D8[4 * v4]
   if ( uVoicesVolumeMultiplier )
   {
     v7 = 0;
     do
     {
-      v8 = v6[v7];
+      v8 = *((_BYTE *)v6 + v7);
       if ( v8 )
         v20[v5++] = v8;
       ++v7;
--- a/mm7_data.cpp	Mon Dec 24 07:48:44 2012 +0600
+++ b/mm7_data.cpp	Tue Dec 25 22:24:33 2012 +0600
@@ -1056,7 +1056,15 @@
   "pc19lhu", "pc20lhu", "pc21lhu", "pc22lhu", "pc23lhu", "pc24lhu",
   "pc25lhu"
 };
-unsigned __int8 byte_4ED3D8[192]; // weak
+short byte_4ED3D8[192]=
+{
+	0, 0, 0, 0, 0, 0, 0, 0, 38, 0, 0, 37, 38, 45, 0, 0, 37, 0, 0, 47, 53, 0, 0, 0, 2, 0, 0, 25, 0, 0, 0, 0, 1, 0, 0, 47, 0,
+	0, 0, 0, 3, 0, 0, 41, 42, 0, 0, 0, 0, 0, 0, 33, 0, 0, 0, 0, 5, 0, 0, 21, 22, 23, 24, 45, 6, 0, 0, 47, 0, 0, 0, 0, 7, 0,
+	0, 43, 48, 0, 0, 0, 8, 0, 0, 38, 0, 0, 0, 0, 9, 0, 0, 39, 0, 0, 0, 0, 13, 0, 0, 37, 38, 0, 0, 0, 23, 0, 0, 25, 0, 0, 0,
+	0, 0, 0, 0, 37, 38, 45, 0, 0, 25, 0, 0, 25, 0, 0, 0, 0, 26, 0, 0, 38, 47, 0, 0, 0, 27, 0, 0, 41, 42, 0, 0, 0, 28, 0, 0,
+	25, 0, 0, 0, 0, 0, 0, 0, 51, 0, 0, 0, 0, 30, 0, 0, 25, 0, 0, 0, 0, 29, 0, 0, 27, 0, 0, 0, 0, 32, 33, 0, 37, 38, 0, 0, 0,
+	34, 0, 0, 53, 0, 0, 0, 0
+}; // weak
 unsigned char byte_4ED498 = 15; // weak
 __int16 pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[4] = {34, 149, 264, 379};
 char byte_4ED970_skill_learn_ability_by_class_table[32][37];
--- a/mm7_data.h	Mon Dec 24 07:48:44 2012 +0600
+++ b/mm7_data.h	Tue Dec 25 22:24:33 2012 +0600
@@ -980,7 +980,7 @@
 extern const char *drh_texnames_by_face[25];
 extern const char *dlh_texnames_by_face[25];
 extern const char *dlhu_texnames_by_face[25];
-extern unsigned __int8 byte_4ED3D8[192]; // weak
+extern short byte_4ED3D8[192]; // weak
 extern unsigned char byte_4ED498; // weak
 extern __int16 pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[4];
 extern char byte_4ED970_skill_learn_ability_by_class_table[32][37];