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

Function clamp_hole_destination

src/trap.c:592–599  ·  view source on GitHub ↗

limit the destination of a hole or trapdoor to the furthest level you should be able to fall to */

Source from the content-addressed store, hash-verified

590/* limit the destination of a hole or trapdoor to the furthest level you
591 should be able to fall to */
592d_level *
593clamp_hole_destination(d_level *dlev)
594{
595 int bottom = dng_bottom(dlev);
596
597 dlev->dlevel = min(dlev->dlevel, bottom);
598 return dlev;
599}
600
601void
602fall_through(

Callers 3

mlevel_tele_trapFunction · 0.85
dodownFunction · 0.85
fall_throughFunction · 0.85

Calls 1

dng_bottomFunction · 0.85

Tested by

no test coverage detected