send lua warnings to paniclog instead to player
Now that the garbage collection problem has been fixed, record lua warnings in the paniclog file rather than showing them on the screen. Move nhl_warn()'s warnbuf[] to struct g in case restart ever gets implemented so that it can be cleared if the restart occurred while a warning message was under construction.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 decl.h $NHDT-Date: 1645000560 2022/02/16 08:36:00 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.283 $ */
|
||||
/* NetHack 3.7 decl.h $NHDT-Date: 1654070559 2022/06/01 08:02:39 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.296 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Michael Allison, 2007. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -1048,6 +1048,7 @@ struct instance_globals {
|
||||
|
||||
/* nhlua.c */
|
||||
genericptr_t luacore; /* lua_State * */
|
||||
char lua_warnbuf[BUFSZ];
|
||||
|
||||
/* o_init.c */
|
||||
short disco[NUM_OBJECTS];
|
||||
|
||||
Reference in New Issue
Block a user