Guest User

Untitled

a guest
Oct 19th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. ClipContext *cc = clip->getContext();
  2.  
  3. radius = thing->radius; // where force goes to zero
  4. cc->bbox[BOXTOP] = thing->y + radius;
  5. cc->bbox[BOXBOTTOM] = thing->y - radius;
  6. cc->bbox[BOXRIGHT] = thing->x + radius;
  7. cc->bbox[BOXLEFT] = this->x - radius;
  8.  
  9. xl = (cc->bbox[BOXLEFT] - bmaporgx - MAXRADIUS) >> MAPBLOCKSHIFT;
  10. xh = (cc->bbox[BOXRIGHT] - bmaporgx + MAXRADIUS) >> MAPBLOCKSHIFT;
  11. yl = (cc->bbox[BOXBOTTOM] - bmaporgy - MAXRADIUS) >> MAPBLOCKSHIFT;
  12. yh = (cc->bbox[BOXTOP] - bmaporgy + MAXRADIUS) >> MAPBLOCKSHIFT;
  13.  
  14. for (bx = xl; bx <= xh; bx++)
  15. {
  16. for(by = yl; by <= yh; by++)
  17. P_BlockThingsIterator(bx, by, PIT_SOMEFUNCTION, cc);
  18. }
  19.  
  20. cc->done();
Add Comment
Please, Sign In to add comment