comparison GUIWindow.cpp @ 384:c31e87e41131

history clean
author zipi
date Fri, 22 Feb 2013 21:10:50 +0000
parents 7f817679b60e
children c0700eaabeb8
comparison
equal deleted inserted replaced
383:c3a0d94c07a5 384:c31e87e41131
463 Player *v17; // esi@38 463 Player *v17; // esi@38
464 unsigned __int16 v18; // ax@38 464 unsigned __int16 v18; // ax@38
465 unsigned int v19; // edi@43 465 unsigned int v19; // edi@43
466 unsigned int v20; // edi@45 466 unsigned int v20; // edi@45
467 void *v21; // esi@45 467 void *v21; // esi@45
468 char *v22; // [sp+10h] [bp-5Ch]@9
469 signed int v23; // [sp+10h] [bp-5Ch]@38 468 signed int v23; // [sp+10h] [bp-5Ch]@38
470 int v24; // [sp+14h] [bp-58h]@9
471 char *v25; // [sp+14h] [bp-58h]@21 469 char *v25; // [sp+14h] [bp-58h]@21
472 GUIWindow v26; // [sp+18h] [bp-54h]@8 470 GUIWindow v26; // [sp+18h] [bp-54h]@8
473 471
474 v1 = this; 472 v1 = this;
475 pAudioPlayer->StopChannels(-1, -1); 473 pAudioPlayer->StopChannels(-1, -1);
718 memset(&pStru179, 0, 0xFA0u); 716 memset(&pStru179, 0, 0xFA0u);
719 memset(byte_5C6D50, 0, 0x64u); 717 memset(byte_5C6D50, 0, 0x64u);
720 if ( dword_506528 < 29 ) 718 if ( dword_506528 < 29 )
721 { 719 {
722 v3 = (__int64 *)&pParty->field_3C.field_4F0[2 * dword_506528]; 720 v3 = (__int64 *)&pParty->field_3C.field_4F0[2 * dword_506528];
723 v24 = dword_506528 + 1; 721 for(int i=dword_506528+1;i<dword_506528+31;i++)
724 //v22 = (char *)&pStorylineText->StoreLine[dword_506528].pPageTitle;//guess //field_4[3 * dword_506528 + 2];
725 v22 = (char *)&pStorylineText->StoreLine[dword_506528+1].pText;
726 do
727 { 722 {
728 v4 = *(char **)v22; 723 v4 = pStorylineText->StoreLine[i].pText;
729 if ( *v3 ) 724 if ( *v3 )
730 { 725 {
731 if ( v4 ) 726 if ( v4 )
732 { 727 {
733 v5 = BuilDialogueString(v4, uActiveCharacter - 1, 0, 0, 0, v3); 728 v5 = BuilDialogueString(v4, uActiveCharacter - 1, 0, 0, 0, v3);
734 v6 = pAutonoteFont->CalcTextHeight(v5, &v26, 1, 0); 729 v6 = pAutonoteFont->CalcTextHeight(v5, &v26, 1, 0);
735 v7 = (v6 - 3) / (signed int)v26.uFrameHeight; 730 v7 = (v6 - 3) / (signed int)v26.uFrameHeight;
736 v8 = v7 + 1; 731 v8 = v7 + 1;
737 if ( (signed int)v7 + 1 > 0 ) 732 if ( (signed int)v7 + 1 > 0 )
738 { 733 {
739 memset32((char *)&pStru179 + 4 * dword_506520 , v24, v8); 734 memset32((char *)&pStru179 + 4 * dword_506520 , i, v8);
740 do 735 do
741 { 736 {
742 LODWORD(v7) = dword_506520++; 737 LODWORD(v7) = dword_506520++;
743 byte_5C6D50[(int)v7] = BYTE4(v7); 738 byte_5C6D50[(int)v7] = BYTE4(v7);
744 ++HIDWORD(v7); 739 ++HIDWORD(v7);
745 } 740 }
746 while ( SHIDWORD(v7) < (signed int)v8 ); 741 while ( SHIDWORD(v7) < (signed int)v8 );
747 } 742 }
748 } 743 }
749 } 744 }
750 v22 += 12; 745 ++i;
751 ++v3; 746 ++v3;
752 ++v24;
753 //__debugbreak(); // fix condition
754 } 747 }
755 //while ( (signed int)v22 < (signed int)&pFactionTable->relations + 8 );
756 while ( (signed int)v22 <= (signed int)&pStorylineText->StoreLine[30].uTime );
757 } 748 }
758 } 749 }
759 } 750 }
760 v12 = dword_506520; 751 v12 = dword_506520;
761 dword_506520 = 0; 752 dword_506520 = 0;