From a29e3a6c0891ea060c3f84b180cdc31203636748 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 17 Sep 2024 16:36:43 +0200 Subject: [PATCH] Do not rerun MapLoad Lua hook when reloading gamestate Prevents spam for addons that use it and some potential issues --- src/p_setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/p_setup.c b/src/p_setup.c index 12e8dd96..d4c2f1c3 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -3381,7 +3381,8 @@ boolean P_SetupLevel(boolean skipprecip, boolean reloadinggamestate) } P_PreTicker(2); #ifdef HAVE_BLUA - LUAh_MapLoad(); + if (!reloadinggamestate) + LUAh_MapLoad(); #endif }