MCPcopy Index your code
hub / github.com/NetHack/NetHack / lspo_reset_level

Function lspo_reset_level

src/sp_lev.c:5992–6010  ·  view source on GitHub ↗

reset_level is only needed for testing purposes */

Source from the content-addressed store, hash-verified

5990
5991/* reset_level is only needed for testing purposes */
5992int
5993lspo_reset_level(lua_State *L)
5994{
5995 boolean wtower = In_W_tower(u.ux, u.uy, &u.uz);
5996
5997 iflags.lua_testing = TRUE;
5998 if (L) {
5999 if (gc.coder) {
6000 Free(gc.coder);
6001 gc.coder = NULL;
6002 }
6003 create_des_coder();
6004 }
6005 makemap_prepost(TRUE, wtower);
6006 gi.in_mklev = TRUE;
6007 oinit(); /* assign level dependent obj probabilities */
6008 clear_level_structures();
6009 return 0;
6010}
6011
6012/* finalize_level is only needed for testing purposes */
6013int

Callers 1

wiz_load_spluaFunction · 0.85

Calls 5

In_W_towerFunction · 0.85
create_des_coderFunction · 0.85
makemap_prepostFunction · 0.85
oinitFunction · 0.85
clear_level_structuresFunction · 0.85

Tested by

no test coverage detected