| 1964 | } |
| 1965 | |
| 1966 | staticfn void |
| 1967 | display_jump_positions(boolean on_off) |
| 1968 | { |
| 1969 | coordxy x, y, dx, dy; |
| 1970 | |
| 1971 | if (on_off) { |
| 1972 | /* on */ |
| 1973 | tmp_at(DISP_BEAM, cmap_to_glyph(S_goodpos)); |
| 1974 | for (dx = -4; dx <= 4; dx++) |
| 1975 | for (dy = -4; dy <= 4; dy++) { |
| 1976 | x = dx + u.ux; |
| 1977 | y = dy + u.uy; |
| 1978 | if (get_valid_jump_position(x, y) && !u_at(x, y)) |
| 1979 | tmp_at(x, y); |
| 1980 | } |
| 1981 | } else { |
| 1982 | /* off */ |
| 1983 | tmp_at(DISP_END, 0); |
| 1984 | } |
| 1985 | } |
| 1986 | |
| 1987 | int |
| 1988 | jump(int magic) /* 0=Physical, otherwise skill level */ |
nothing calls this directly
no test coverage detected