Mercurial > mm7
comparison mm7_1.cpp @ 649:0e368c04acfb
Sleeping in a tavern
author | Nomad |
---|---|
date | Mon, 11 Mar 2013 23:43:52 +0200 |
parents | 8a0ec99a5177 |
children | 1ff57450f090 |
comparison
equal
deleted
inserted
replaced
648:35ce4761382c | 649:0e368c04acfb |
---|---|
3696 { | 3696 { |
3697 int v0; // esi@1 | 3697 int v0; // esi@1 |
3698 Player **ppPlayers; // ecx@1 | 3698 Player **ppPlayers; // ecx@1 |
3699 Player *pPlayer; // eax@2 | 3699 Player *pPlayer; // eax@2 |
3700 unsigned int v3; // eax@15 | 3700 unsigned int v3; // eax@15 |
3701 char v4; // al@17 | 3701 //char v4; // al@17 |
3702 bool v5; // eax@21 | 3702 bool v5; // eax@21 |
3703 GUIButton Dst; // [sp+8h] [bp-DCh]@19 | 3703 GUIButton Dst; // [sp+8h] [bp-DCh]@19 |
3704 //double v7; // [sp+C4h] [bp-20h]@17 | 3704 //double v7; // [sp+C4h] [bp-20h]@17 |
3705 float v8; // [sp+CCh] [bp-18h]@17 | 3705 float v8; // [sp+CCh] [bp-18h]@17 |
3706 __int64 v9; // [sp+D0h] [bp-14h]@17 | 3706 __int64 v9; // [sp+D0h] [bp-14h]@17 |
3749 { | 3749 { |
3750 v3 = 0; | 3750 v3 = 0; |
3751 _507CD4_RestUI_hourglass_anim_controller = 0; | 3751 _507CD4_RestUI_hourglass_anim_controller = 0; |
3752 } | 3752 } |
3753 v9 = v3; | 3753 v9 = v3; |
3754 v8 = (double)v3 * 0.001953125 * 120.0; | 3754 v8 = (double)v3 / 512.0 * 120.0; |
3755 //v7 = v8 + 6.7553994e15; | 3755 //v7 = v8 + 6.7553994e15; |
3756 HIDWORD(v9) = floorf(v8 + 0.5f);//LODWORD(v7); | 3756 HIDWORD(v9) = floorf(v8 + 0.5f);//LODWORD(v7); |
3757 v4 = (int)floorf(v8 + 0.5f) % 256 + 1;//LOBYTE(v7) + 1; | 3757 hourglass_icon_idx = (int)floorf(v8 + 0.5f) % 256 + 1;//LOBYTE(v7) + 1; |
3758 byte_4E2BC8 = v4; | 3758 //hourglass_icon_idx = v4; |
3759 if ( (unsigned __int8)(v4) >= 0x78u ) | 3759 if (hourglass_icon_idx >= 120 ) |
3760 { | 3760 { |
3761 v4 = 1; | 3761 //v4 = 1; |
3762 byte_4E2BC8 = 1; | 3762 hourglass_icon_idx = 1; |
3763 } | 3763 } |
3764 sprintf(pTmpBuf, "hglas%03d", (unsigned __int8)v4); | 3764 sprintf(pTmpBuf, "hglas%03d", hourglass_icon_idx); |
3765 pTexture_RestUI_CurrentHourglassFrame = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(pTmpBuf, TEXTURE_16BIT_PALETTE)]; | 3765 pTexture_RestUI_CurrentHourglassFrame = pIcons_LOD->LoadTexturePtr(pTmpBuf, TEXTURE_16BIT_PALETTE); |
3766 pRenderer->DrawTextureIndexed(0x10Bu, 0x9Fu, pTexture_RestUI_CurrentHourglassFrame); | 3766 pRenderer->DrawTextureIndexed(0x10Bu, 0x9Fu, pTexture_RestUI_CurrentHourglassFrame); |
3767 memset(&Dst, 0, 0xBCu); | 3767 memset(&Dst, 0, 0xBCu); |
3768 Dst.uX = 24; | 3768 Dst.uX = 24; |
3769 Dst.uY = 154; | 3769 Dst.uY = 154; |
3770 Dst.uWidth = 171; | 3770 Dst.uWidth = 171; |