distance
int distance;
if (itemp->distance == -1) {
itemp->distance = dist;
if (itemp->distance == -1 || (!side
itemp->distance = dist;
itemp->distance = dist;
if (itemp->distance == -1) {
itemp->distance = dist;
itemp->distance = -1;
for (r = row - 1; r > row - itemp->distance; r--)
for (r = row + 1; r < row + itemp->distance; r++)
for (c = col - 1; c > col - itemp->distance; c--)
for (c = col + 1; c < col + itemp->distance; c++)
face_and_move_direction(int rel_dir, int distance)
if (distance == 0) {
while (distance--) {
if (distance == 0)
} else if (itemp->distance > 1) {
if (flbr[i].what == mine && flbr[i].distance < dist) {
dist = flbr[i].distance;
|| flbr[rel_dir].distance > 1) {
if (!(flbr[i].flags & BEEN) || flbr[i].distance <= 1)
if (flbr[j].distance <= 1 || flbr[j].flags & DEADEND)
for (tmp = 1; tmp < distance; tmp++) /* only up to 20 squares away */
out: if (tmp < distance) /* did find connectivity */
static int tmp1, tmp2, tmp3, tmp4, distance;
distance = 40; /* depth of intelligent monster movement */
distance = 17; /* depth of intelligent monster movement */
temp1 = distance(Player.p_x, Enrgyvoid.ev_x, Player.p_y, Enrgyvoid.ev_y);
#define CIRCLE(X, Y) floor(distance(X, 0.0, Y, 0.0) / 125.0 + 1)
else if (distance(Player.p_x, x, Player.p_y, y) > MAXMOVE())
temp = distance(Player.p_x, x, Player.p_y, y);
double distance(double, double, double, double);
result = bb = distance(bow2r - bow1r, bow2c - bow1c);
bs = distance((bow2r - stern1r), (bow2c - stern1c));
sb = distance((bow1r - stern2r), (bow1c - stern2c));
ss = distance((stern2r - stern1r) ,(stern2c - stern1c));
# define _tr_tally_dist(s, distance, length, flush) \
ush dist = (distance); \
# define _tr_tally_dist(s, distance, length, flush) \
flush = _tr_tally(s, distance, length)
sc->distance = 0;
int distance; /* the distance of 2 fingers */
sc->distance = max(sc->distance, max(
if (sc->distance < MAX_DISTANCE && abs(sc->dx_sum) < 5 &&
uint16_t distance;
distance = 0xFFFF;
if (distance > temp) {
distance = temp;
unsigned int base, idx, distance;
for (idx = 0, base = 0, distance = pd->pd_count; distance != 0;
distance >>= 1) {
idx = base + (distance >> 1);
distance--;
# define _tr_tally_dist(s, distance, length, flush) \
ush dist = (distance); \
# define _tr_tally_dist(s, distance, length, flush) \
flush = _tr_tally(s, distance, length)
if (a->distance > b->distance) {
} else if (a->distance == b->distance) {
sh[i][j-1].distance = table[i][0].votes - table[i][j].votes;
int distance;
double distance = lunar_distance(t);
double sin_pi = 6378140.0 / distance;
# define _tr_tally_dist(s, distance, length, flush) \
ush dist = (distance); \
# define _tr_tally_dist(s, distance, length, flush) \
flush = _tr_tally(s, distance, length)