do a turn of moveloop, or until gm.multi is done if param is true. */ nh.doturn(); nh.doturn(true); */
| 1440 | /* do a turn of moveloop, or until gm.multi is done if param is true. */ |
| 1441 | /* nh.doturn(); nh.doturn(true); */ |
| 1442 | staticfn int |
| 1443 | nhl_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, |
nothing calls this directly
no outgoing calls
no test coverage detected