MCPcopy Create free account
hub / github.com/NetHack/NetHack / display_jump_positions

Function display_jump_positions

src/apply.c:1966–1985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1964}
1965
1966staticfn void
1967display_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
1987int
1988jump(int magic) /* 0=Physical, otherwise skill level */

Callers

nothing calls this directly

Calls 2

tmp_atFunction · 0.85
get_valid_jump_positionFunction · 0.85

Tested by

no test coverage detected