Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 1
- void __usercall sub_48DA30(unsigned __int16 a1@<ax>)
- {
- unsigned __int16 v1; // si
- int v2; // eax
- unsigned __int8 v3; // al
- int v4; // ecx
- int v5; // edx
- int v6; // ecx
- grpHead *v7; // esi
- int v8; // edi
- int v9; // ebx
- RECT rc; // [esp+Ch] [ebp-10h]
- v1 = a1;
- if ( placeBuildingOrderID != 71 && (placeBuildingOrderID != 36 || a1) )
- v2 = (unsigned __int8)activePortraitUnit->owner;
- else
- v2 = (unsigned __int8)activePortraitUnit->sprite->owner;
- v3 = getColourID(v2);
- v4 = *(_DWORD *)&tunit_image_palette[8 * v3];
- v5 = *(_DWORD *)&tunit_image_palette[8 * v3 + 4];
- drawColorID = v3;
- *(_DWORD *)&imgDrawPaletteIndex[8] = v4;
- v6 = unitsdat_Graphics[v1];
- *(_DWORD *)&imgDrawPaletteIndex[12] = v5;
- v7 = imagesGRPGraphic[SpritesDAT_ImageID[Flingy_SpriteID[v6]]];
- v8 = v7->frames[0].left;
- v9 = v7->frames[0].top;
- SetRect((LPRECT)&rc, 0, 0, v7->frames[0].right, v7->frames[0].bottom);
- imageRenderFxn0_0(v8, v9, v7->frames, &rc, 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement