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

Function Is_branchlev

src/dungeon.c:1463–1473  ·  view source on GitHub ↗

* Is this a multi-dungeon branch level? If so, return a pointer to the * branch. Otherwise, return null. */

Source from the content-addressed store, hash-verified

1461 * branch. Otherwise, return null.
1462 */
1463branch *
1464Is_branchlev(d_level *lev)
1465{
1466 branch *curr;
1467
1468 for (curr = svb.branches; curr; curr = curr->next) {
1469 if (on_level(lev, &curr->end1) || on_level(lev, &curr->end2))
1470 return curr;
1471 }
1472 return (branch *) 0;
1473}
1474
1475/* returns True iff the branch 'lev' is in a branch which builds up */
1476boolean

Callers 10

no_bones_levelFunction · 0.85
can_make_bonesFunction · 0.85
getlevFunction · 0.85
fill_ordinary_roomFunction · 0.85
makelevelFunction · 0.85
mk_knox_portalFunction · 0.85
place_lregionFunction · 0.85
put_lregion_hereFunction · 0.85
fixup_specialFunction · 0.85
makemazFunction · 0.85

Calls 1

on_levelFunction · 0.85

Tested by

no test coverage detected