Mercurial > mm7
comparison mm7_5.cpp @ 321:15decc249a94
quick fix to spells commit (wasnt compiling)
author | Nomad |
---|---|
date | Wed, 20 Feb 2013 03:35:22 +0200 |
parents | 0b2af9c5f70f |
children | ce39b96acf5c |
comparison
equal
deleted
inserted
replaced
320:0b2af9c5f70f | 321:15decc249a94 |
---|---|
13536 if ( v3 && (unsigned __int8)v3 / 11 == school ) | 13536 if ( v3 && (unsigned __int8)v3 / 11 == school ) |
13537 dword_50654C = (unsigned __int8)v3 - 11 * school; | 13537 dword_50654C = (unsigned __int8)v3 - 11 * school; |
13538 else | 13538 else |
13539 dword_50654C = 0; | 13539 dword_50654C = 0; |
13540 | 13540 |
13541 char *v11 = &pPlayer->field_152[11 * school + 63]; | 13541 //char *v11 = &pPlayer->field_152[11 * school + 63]; |
13542 | 13542 |
13543 for (uint i = 1; i < 12; ++i) | 13543 for (uint i = 1; i < 12; ++i) |
13544 { | 13544 { |
13545 if (v11[i]) | 13545 //if (v11[i]) |
13546 { | 13546 if (pPlayer->spellbook.pChapters[school].bIsSpellAvailable[i - 1]) |
13547 sprintf(pContainer, "SB%cS%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]); | 13547 { |
13548 sprintf(pContainer, "SB%sS%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]); | |
13548 dword_506408[i] = pIcons_LOD->LoadTexturePtr(pContainer, TEXTURE_16BIT_PALETTE); | 13549 dword_506408[i] = pIcons_LOD->LoadTexturePtr(pContainer, TEXTURE_16BIT_PALETTE); |
13549 | 13550 |
13550 sprintf(pContainer, "SB%cC%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]); | 13551 sprintf(pContainer, "SB%sC%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]); |
13551 dword_5063D8[i] = pIcons_LOD->LoadTexturePtr(pContainer, TEXTURE_16BIT_PALETTE); | 13552 dword_5063D8[i] = pIcons_LOD->LoadTexturePtr(pContainer, TEXTURE_16BIT_PALETTE); |
13552 } | 13553 } |
13553 } | 13554 } |
13554 } | 13555 } |
13555 | 13556 |