Do not rerun MapLoad Lua hook when reloading gamestate

Prevents spam for addons that use it and some potential issues
This commit is contained in:
Alug 2024-09-17 16:36:43 +02:00
parent 993c53436b
commit a29e3a6c08

View file

@ -3381,7 +3381,8 @@ boolean P_SetupLevel(boolean skipprecip, boolean reloadinggamestate)
}
P_PreTicker(2);
#ifdef HAVE_BLUA
LUAh_MapLoad();
if (!reloadinggamestate)
LUAh_MapLoad();
#endif
}