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

Function nhl_flip_level

src/nhlua.c:1508–1520  ·  view source on GitHub ↗

flip level */ nh.flip_level(n); */

Source from the content-addressed store, hash-verified

1506/* flip level */
1507/* nh.flip_level(n); */
1508staticfn int
1509nhl_flip_level(lua_State *L)
1510{
1511 int argc = lua_gettop(L);
1512 int flp = 0;
1513
1514 if (argc == 1)
1515 flp = lua_tointeger(L, 1);
1516
1517 flip_level(flp, !gi.in_mklev);
1518
1519 return 0;
1520}
1521
1522DISABLE_WARNING_UNREACHABLE_CODE
1523

Callers

nothing calls this directly

Calls 1

flip_levelFunction · 0.85

Tested by

no test coverage detected