From: PatR Date: Wed, 1 Jun 2022 20:45:57 +0000 (-0700) Subject: another lua warning bit X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5977fa4481012004be5a73cd04f3ce4a1880ec0f;p=nethack another lua warning bit I forgot to do this with yesterday's post garbage collection fix update. Record lua warnings in paniclog during normal play too, not just when in wizard mode. --- diff --git a/src/nhlua.c b/src/nhlua.c index 097094696..4cd7a204d 100644 --- a/src/nhlua.c +++ b/src/nhlua.c @@ -1,4 +1,4 @@ -/* NetHack 3.7 nhlua.c $NHDT-Date: 1654070580 2022/06/01 08:03:00 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.83 $ */ +/* NetHack 3.7 nhlua.c $NHDT-Date: 1654116350 2022/06/01 20:45:50 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.84 $ */ /* Copyright (c) 2018 by Pasi Kallinen */ /* NetHack may be freely redistributed. See license for details. */ @@ -2330,9 +2330,7 @@ nhlL_newstate(nhl_sandbox_info *sbi) lua_atpanic(L, nhl_panic); #if LUA_VERSION_NUM == 504 - /* issue lua warnings only when in wizard mode, at least until - someone figures out and fixes the garbage collection problem */ - lua_setwarnf(L, wizard ? nhl_warn : (lua_WarnFunction) 0, L); + lua_setwarnf(L, nhl_warn, L); #endif #ifdef NHL_SANDBOX