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

Function hurtle_jump

src/dothrow.c:741–752  ·  view source on GitHub ↗

hack for hurtle_step() -- it ought to be changed to take an argument indicating lev/fly-to-dest vs lev/fly-to-dest-minus-one-land-on-dest vs drag-to-dest; original callers use first mode, jumping wants second, grappling hook backfire and thrown chained ball need third */

Source from the content-addressed store, hash-verified

739 vs drag-to-dest; original callers use first mode, jumping wants second,
740 grappling hook backfire and thrown chained ball need third */
741boolean
742hurtle_jump(genericptr_t arg, coordxy x, coordxy y)
743{
744 boolean res;
745 long save_EWwalking = EWwalking;
746
747 /* prevent jumping over water from being placed in that water */
748 EWwalking |= I_SPECIAL;
749 res = hurtle_step(arg, x, y);
750 EWwalking = save_EWwalking;
751 return res;
752}
753
754/*
755 * Single step for the hero flying through the air from jumping, flying,

Callers

nothing calls this directly

Calls 1

hurtle_stepFunction · 0.85

Tested by

no test coverage detected