comparison mm7_5.cpp @ 203:0c64754c7fd4

Voices work (at least in party creation screen)
author Nomad
date Sun, 17 Feb 2013 05:27:56 +0200
parents 30aa44013f7a
children 1bd823f52e3a f809f0465769
comparison
equal deleted inserted replaced
201:30aa44013f7a 203:0c64754c7fd4
13146 //unsigned char *v6; // edi@7 13146 //unsigned char *v6; // edi@7
13147 //unsigned int v7; // eax@7 13147 //unsigned int v7; // eax@7
13148 //unsigned __int8 v8; // sf@8 13148 //unsigned __int8 v8; // sf@8
13149 //unsigned __int8 v9; // of@8 13149 //unsigned __int8 v9; // of@8
13150 char pContainer[20]; // [sp+Ch] [bp-1Ch]@7 13150 char pContainer[20]; // [sp+Ch] [bp-1Ch]@7
13151 Texture *v11; // [sp+20h] [bp-8h]@5 13151 //Texture *v11; // [sp+20h] [bp-8h]@5
13152 //int v12; // [sp+24h] [bp-4h]@5 13152 //int v12; // [sp+24h] [bp-4h]@5
13153 13153
13154 byte_506550 = 0; 13154 byte_506550 = 0;
13155 //v1 = uID; 13155 //v1 = uID;
13156 pPlayer = pPlayers[uActiveCharacter]; 13156 pPlayer = pPlayers[uActiveCharacter];
13158 if ( v3 && (unsigned __int8)v3 / 11 == school ) 13158 if ( v3 && (unsigned __int8)v3 / 11 == school )
13159 dword_50654C = (unsigned __int8)v3 - 11 * school; 13159 dword_50654C = (unsigned __int8)v3 - 11 * school;
13160 else 13160 else
13161 dword_50654C = 0; 13161 dword_50654C = 0;
13162 13162
13163 v11 = (Texture *)&pPlayer->field_152[11 * school + 63]; 13163 char *v11 = &pPlayer->field_152[11 * school + 63];
13164 13164
13165 for (uint i = 1; i < 12; ++i) 13165 for (uint i = 1; i < 12; ++i)
13166 { 13166 {
13167 if ( v11->pName[i] ) 13167 if (v11[i])
13168 { 13168 {
13169 sprintf(pContainer, "SB%sS%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]); 13169 sprintf(pContainer, "SB%sS%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]);
13170 dword_506408[i] = pIcons_LOD->LoadTexturePtr(pContainer, TEXTURE_16BIT_PALETTE); 13170 dword_506408[i] = pIcons_LOD->LoadTexturePtr(pContainer, TEXTURE_16BIT_PALETTE);
13171 13171
13172 sprintf(pContainer, "SB%sC%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]); 13172 sprintf(pContainer, "SB%sC%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]);