pc->x = (pc->x + c->x * 3) / 4;
- if (pc->y > pe->y && pe->y > pb->y) {
+ if (pc->y > pe->y)
+ SCF_XCHG(pc, pe);
- if ((c->x < 0 && pc->x > pe->x) || (c->x > 0 && pc->x < pe->x))
+ if (pc->y > pb->y) {
+
+ if ((c->x < 0 && pc->x < pe->x) || (c->x > 0 && pc->x > pe->x))
SCF_XCHG(pc->x, pe->x);
- } else if (pc->y < pe->y && pe->y < pb->y) {
+ } else if (pe->y < pb->y) {
if ((c->x < 0 && pc->x > pe->x) || (c->x > 0 && pc->x < pe->x))
SCF_XCHG(pc->x, pe->x);
- } else if ((pc->y > pb->y && pb->y > pe->y) || (pc->y < pb->y && pb->y < pe->y)) {
+ } else if (pc->y < pb->y) {
if ((c->x > 0 && pc->x < pb->x) || (c->x < 0 && pc->x > pb->x)) {
SCF_XCHG(pc->x, pe->x);