Advertisement
Pr0nogo

Untitled

Jun 27th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. // 1
  2. void __usercall sub_48DA30(unsigned __int16 a1@<ax>)
  3. {
  4. unsigned __int16 v1; // si
  5. int v2; // eax
  6. unsigned __int8 v3; // al
  7. int v4; // ecx
  8. int v5; // edx
  9. int v6; // ecx
  10. grpHead *v7; // esi
  11. int v8; // edi
  12. int v9; // ebx
  13. RECT rc; // [esp+Ch] [ebp-10h]
  14.  
  15. v1 = a1;
  16. if ( placeBuildingOrderID != 71 && (placeBuildingOrderID != 36 || a1) )
  17. v2 = (unsigned __int8)activePortraitUnit->owner;
  18. else
  19. v2 = (unsigned __int8)activePortraitUnit->sprite->owner;
  20. v3 = getColourID(v2);
  21. v4 = *(_DWORD *)&tunit_image_palette[8 * v3];
  22. v5 = *(_DWORD *)&tunit_image_palette[8 * v3 + 4];
  23. drawColorID = v3;
  24. *(_DWORD *)&imgDrawPaletteIndex[8] = v4;
  25. v6 = unitsdat_Graphics[v1];
  26. *(_DWORD *)&imgDrawPaletteIndex[12] = v5;
  27. v7 = imagesGRPGraphic[SpritesDAT_ImageID[Flingy_SpriteID[v6]]];
  28. v8 = v7->frames[0].left;
  29. v9 = v7->frames[0].top;
  30. SetRect((LPRECT)&rc, 0, 0, v7->frames[0].right, v7->frames[0].bottom);
  31. imageRenderFxn0_0(v8, v9, v7->frames, &rc, 0);
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement