MCPcopy Index your code
hub / github.com/NetHack/NetHack / deltrap

Function deltrap

src/trap.c:6530–6549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6528}
6529
6530void
6531deltrap(struct trap *trap)
6532{
6533 struct trap *ttmp;
6534
6535 clear_conjoined_pits(trap);
6536 if (trap == gf.ftrap) {
6537 gf.ftrap = gf.ftrap->ntrap;
6538 } else {
6539 for (ttmp = gf.ftrap; ttmp; ttmp = ttmp->ntrap)
6540 if (ttmp->ntrap == trap)
6541 break;
6542 if (!ttmp)
6543 panic("deltrap: no preceding trap!");
6544 ttmp->ntrap = trap->ntrap;
6545 }
6546 if (Sokoban && (trap->ttyp == PIT || trap->ttyp == HOLE))
6547 maybe_finish_sokoban();
6548 dealloc_trap(trap);
6549}
6550
6551boolean
6552conjoined_pits(

Callers 15

expulsionFunction · 0.85
doteleFunction · 0.85
tele_trapFunction · 0.85
level_tele_trapFunction · 0.85
drop_ballFunction · 0.85
deferred_gotoFunction · 0.85
wizterrainwishFunction · 0.85
nhl_deltrapFunction · 0.85
getlevFunction · 0.85
moverock_coreFunction · 0.85
domove_fight_webFunction · 0.85
digFunction · 0.85

Calls 3

clear_conjoined_pitsFunction · 0.85
maybe_finish_sokobanFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected