Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 1
- void __userpurge getUnitPlaceboxSize(int a1@<eax>, WORD *a2@<edi>, WORD *a3)
- {
- int v3; // eax
- int v4; // edx
- grpHead *v5; // ecx
- int v6; // esi
- int v7; // eax
- v5 = imagesGRPGraphic[SpritesDAT_ImageID[Flingy_SpriteID[unitsdat_Graphics[(unsigned __int16)a1]]]];
- v4 = unitsdat_StareditPlacementBox[(unsigned __int16)a1].x;
- v6 = unitsdat_StareditPlacementBox[(unsigned __int16)a1].y;
- v3 = (unsigned __int16)v5->width;
- if ( v3 <= v4 )
- LOWORD(v3) = v4;
- *a3 = v3;
- v7 = (unsigned __int16)v5->height;
- if ( v7 <= v6 )
- *a2 = v6;
- else
- *a2 = v7;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement