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

Function unplaced_floater

src/dungeon.c:2174–2187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2172#undef dlev_in_current_branch
2173
2174staticfn boolean
2175unplaced_floater(struct dungeon *dptr)
2176{
2177 branch *br;
2178 int idx = (int) (dptr - svd.dungeons);
2179
2180 /* if other floating branches are added, this will need to change */
2181 if (idx != knox_level.dnum)
2182 return FALSE;
2183 for (br = svb.branches; br; br = br->next)
2184 if (br->end1.dnum == svn.n_dgns && br->end2.dnum == idx)
2185 return TRUE;
2186 return FALSE;
2187}
2188
2189staticfn boolean
2190unreachable_level(d_level *lvl_p, boolean unplaced)

Callers 1

print_dungeonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected