| 199 | } |
| 200 | |
| 201 | BOOL CheckBlock(int fx, int fy, int tx, int ty) |
| 202 | { |
| 203 | int pn; |
| 204 | BOOL coll; |
| 205 | |
| 206 | coll = FALSE; |
| 207 | while (fx != tx || fy != ty) { |
| 208 | pn = GetDirection(fx, fy, tx, ty); |
| 209 | fx += XDirAdd[pn]; |
| 210 | fy += YDirAdd[pn]; |
| 211 | if (nSolidTable[dPiece[fx][fy]]) |
| 212 | coll = TRUE; |
| 213 | } |
| 214 | |
| 215 | return coll; |
| 216 | } |
| 217 | |
| 218 | int FindClosest(int sx, int sy, int rad) |
| 219 | { |
no test coverage detected