Advertisement
Pr0nogo

Untitled

Jun 27th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. // 1
  2. void __userpurge getUnitPlaceboxSize(int a1@<eax>, WORD *a2@<edi>, WORD *a3)
  3. {
  4. int v3; // eax
  5. int v4; // edx
  6. grpHead *v5; // ecx
  7. int v6; // esi
  8. int v7; // eax
  9.  
  10. v5 = imagesGRPGraphic[SpritesDAT_ImageID[Flingy_SpriteID[unitsdat_Graphics[(unsigned __int16)a1]]]];
  11. v4 = unitsdat_StareditPlacementBox[(unsigned __int16)a1].x;
  12. v6 = unitsdat_StareditPlacementBox[(unsigned __int16)a1].y;
  13. v3 = (unsigned __int16)v5->width;
  14. if ( v3 <= v4 )
  15. LOWORD(v3) = v4;
  16. *a3 = v3;
  17. v7 = (unsigned __int16)v5->height;
  18. if ( v7 <= v6 )
  19. *a2 = v6;
  20. else
  21. *a2 = v7;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement