comparison Player.cpp @ 191:d625cbdf34f0

25.12.12(byte_4ED3D8)
author Ritor1
date Tue, 25 Dec 2012 22:24:33 +0600
parents d7bd52a35e52
children 1f1de8a1e988
comparison
equal deleted inserted replaced
190:d7bd52a35e52 191:d625cbdf34f0
571 __int16 Player::PlaySound(int a2, int a3) 571 __int16 Player::PlaySound(int a2, int a3)
572 { 572 {
573 Player *pPlayer; // edi@1 573 Player *pPlayer; // edi@1
574 int v4; // eax@4 574 int v4; // eax@4
575 signed int v5; // esi@4 575 signed int v5; // esi@4
576 unsigned __int8 *v6; // ebx@4 576 short *v6; // ebx@4
577 signed int v7; // ecx@5 577 signed int v7; // ecx@5
578 unsigned __int8 v8; // al@6 578 unsigned __int8 v8; // al@6
579 int v9; // eax@10 579 int v9; // eax@10
580 unsigned int pVoiceID; // ecx@10 580 unsigned int pVoiceID; // ecx@10
581 int v11; // esi@10 581 int v11; // esi@10
602 } 602 }
603 while ( pPlayerNum <= 4 ); 603 while ( pPlayerNum <= 4 );
604 v4 = a2;//102 604 v4 = a2;//102
605 v5 = 0; 605 v5 = 0;
606 pSoundId = 0; 606 pSoundId = 0;
607 v6 = &byte_4ED3D8[8 * v4];//byte_4ED280 607 v6 = &byte_4ED3D8[8 * v4];//byte_4ED280 &byte_4ED3D8[4 * v4]
608 if ( uVoicesVolumeMultiplier ) 608 if ( uVoicesVolumeMultiplier )
609 { 609 {
610 v7 = 0; 610 v7 = 0;
611 do 611 do
612 { 612 {
613 v8 = v6[v7]; 613 v8 = *((_BYTE *)v6 + v7);
614 if ( v8 ) 614 if ( v8 )
615 v20[v5++] = v8; 615 v20[v5++] = v8;
616 ++v7; 616 ++v7;
617 } 617 }
618 while ( v7 < 2 ); 618 while ( v7 < 2 );