Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Utility function to check for ffc solidity at an arbitrary pixel.
- // There *must* be a faster way to do this...
- bool IsSolidFFC(int x, int y)
- {
- ffc f; int q = 1;
- for ( ; q < 33; ++q )
- {
- f = Screen->LoadFFC(q);
- if ( f->Flags&FFCF_SOLID )
- {
- if ( RectCollision(f->X, f->Y, f->X+f->EffectWidth, f->Y+f->EffectHeight, x, y, x, y)
- {
- return true;
- }
- }
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement