Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ClipContext *cc = clip->getContext();
- tmpusher = this; // PUSH/PULL point source
- radius = this->radius; // where force goes to zero
- cc->bbox[BOXTOP] = this->y + radius;
- cc->bbox[BOXBOTTOM] = this->y - radius;
- cc->bbox[BOXRIGHT] = this->x + radius;
- cc->bbox[BOXLEFT] = this->x - radius;
- xl = (cc->bbox[BOXLEFT] - bmaporgx - MAXRADIUS) >> MAPBLOCKSHIFT;
- xh = (cc->bbox[BOXRIGHT] - bmaporgx + MAXRADIUS) >> MAPBLOCKSHIFT;
- yl = (cc->bbox[BOXBOTTOM] - bmaporgy - MAXRADIUS) >> MAPBLOCKSHIFT;
- yh = (cc->bbox[BOXTOP] - bmaporgy + MAXRADIUS) >> MAPBLOCKSHIFT;
- for (bx = xl; bx <= xh; bx++)
- {
- for(by = yl; by <= yh; by++)
- P_BlockThingsIterator(bx, by, PIT_PushThing, cc);
- }
- cc->done();
Add Comment
Please, Sign In to add comment