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

Function nhl_doturn

src/nhlua.c:1442–1456  ·  view source on GitHub ↗

do a turn of moveloop, or until gm.multi is done if param is true. */ nh.doturn(); nh.doturn(true); */

Source from the content-addressed store, hash-verified

1440/* do a turn of moveloop, or until gm.multi is done if param is true. */
1441/* nh.doturn(); nh.doturn(true); */
1442staticfn int
1443nhl_doturn(lua_State *L)
1444{
1445 int argc = lua_gettop(L);
1446 boolean domulti = FALSE;
1447
1448 if (argc == 1)
1449 domulti = lua_toboolean(L, 1);
1450
1451 do {
1452 moveloop_core();
1453 } while (domulti && gm.multi);
1454
1455 return 0;
1456}
1457
1458/* set debugging flags. debugging use only, of course. */
1459/* nh.debug_flags({ mongen = false,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected