Searched refs:towndist (Results 1 – 2 of 2) sorted by relevance
/dports/games/tomenet/tomenet-4.6.0/src/server/ |
H A D | wild.c | 129 static int towndist(int wx, int wy, s16b *townlev) { in towndist() function 147 wild_info[y][x].radius = towndist(x, y, &tlev); in init_wild_info_aux() 234 if (in_bounds_wild(y, x) && (towndist(x, y, &tlev) <= abs(wpos->wx - x) + abs(wpos->wy - y))) { in deltown() 252 wild_info[wpos->wy][wpos->wx].radius = towndist(wpos->wy, wpos->wx, &tlev); in deltown()
|
H A D | slash.c | 5454 if (in_bounds_wild(y, x) && (towndist(x, y) <= abs(wpos1.wx - x) + abs(wpos1.wy - y))) { 5455 wild_info[wpos1.wy][wpos1.wx].radius = towndist(wpos1.wy, wpos1.wx); 5461 wild_info[wpos1.wy][wpos1.wx].radius = towndist(wpos1.wy, wpos1.wx); 5465 wild_info[wpos2.wy][wpos2.wx].radius = towndist(wpos2.wy, wpos2.wx);
|