comparison mm7_3.cpp @ 764:90bcfb56c8f9

sound cleaning
author Gloval
date Sat, 23 Mar 2013 21:39:21 +0400
parents e0914a9bc424
children 67b77b052ef3
comparison
equal deleted inserted replaced
761:f24fb0d64a5c 764:90bcfb56c8f9
3044 if ( v114 && (!bJumping || v101) ) 3044 if ( v114 && (!bJumping || v101) )
3045 { 3045 {
3046 if ( !v107 3046 if ( !v107
3047 && !(BYTE1(pOutdoor->pBModels[pParty->field_6F4_packedid >> 9].pFaces[(pParty->field_6F4_packedid >> 3) & 0x3F].uAttributes) & 0x20) ) 3047 && !(BYTE1(pOutdoor->pBModels[pParty->field_6F4_packedid >> 9].pFaces[(pParty->field_6F4_packedid >> 3) & 0x3F].uAttributes) & 0x20) )
3048 { 3048 {
3049 v96 = 0; 3049
3050 v94 = 0;
3051 v92 = 0;
3052 v91 = 0;
3053 v90 = -1; 3050 v90 = -1;
3054 v89 = 1; 3051 v89 = 1;
3055 v88 = 804; 3052 v88 = 804;
3056 v87 = 64; 3053 v87 = 64;
3057 goto LABEL_257; 3054 goto LABEL_257;
3058 } 3055 }
3059 v96 = 0; 3056
3060 v94 = 0;
3061 v92 = 0;
3062 v91 = 0;
3063 v90 = -1; 3057 v90 = -1;
3064 v89 = 1; 3058 v89 = 1;
3065 v88 = 804; 3059 v88 = 804;
3066 v86 = 1; 3060 v86 = 1;
3067 LABEL_255: 3061 LABEL_255:
3068 v63 = WorldPosToGridCellZ(pParty->vPosition.y) - 1; 3062 v63 = WorldPosToGridCellZ(pParty->vPosition.y) - 1;
3069 v64 = WorldPosToGridCellX(pParty->vPosition.x); 3063 v64 = WorldPosToGridCellX(pParty->vPosition.x);
3070 v87 = pOutdoor->_47EE49(v64, v63, v86); 3064 v87 = pOutdoor->GetSoundIdByPosition(v64, v63, v86);
3071 goto LABEL_257; 3065 goto LABEL_257;
3072 } 3066 }
3073 if ( v124 && (!bJumping || v101) ) 3067 if ( v124 && (!bJumping || v101) )
3074 { 3068 {
3075 if ( v107 3069 if ( v107
3076 || BYTE1(pOutdoor->pBModels[pParty->field_6F4_packedid >> 9].pFaces[(pParty->field_6F4_packedid >> 3) & 0x3F].uAttributes) & 0x20 ) 3070 || BYTE1(pOutdoor->pBModels[pParty->field_6F4_packedid >> 9].pFaces[(pParty->field_6F4_packedid >> 3) & 0x3F].uAttributes) & 0x20 )
3077 { 3071 {
3078 v96 = 0; 3072
3079 v94 = 0;
3080 v92 = 0;
3081 v91 = 0;
3082 v90 = -1; 3073 v90 = -1;
3083 v89 = 1; 3074 v89 = 1;
3084 v88 = 804; 3075 v88 = 804;
3085 v86 = 0; 3076 v86 = 0;
3086 goto LABEL_255; 3077 goto LABEL_255;
3087 } 3078 }
3088 v96 = 0;
3089 v94 = 0;
3090 v92 = 0;
3091 v91 = 0;
3092 v90 = -1; 3079 v90 = -1;
3093 v89 = 1; 3080 v89 = 1;
3094 v88 = 804; 3081 v88 = 804;
3095 v87 = 103; 3082 v87 = 103;
3096 LABEL_257: 3083 LABEL_257:
3097 pAudioPlayer->PlaySound((SoundID)v87, v88, v89, v90, v91, v92, v94, v96); 3084 pAudioPlayer->PlaySound((SoundID)v87, v88, v89, v90, 0, 0, 0, 0);
3098 } 3085 }
3099 else 3086 else
3100 { 3087 {
3101 LABEL_344: 3088 LABEL_344:
3102 pAudioPlayer->_4AA258(804); 3089 pAudioPlayer->_4AA258(804);