From e858b8e6b68e55fbf4b5452c79794a56a880ca69 Mon Sep 17 00:00:00 2001 From: Lactozilla <jp6781615@gmail.com> Date: Sat, 15 Feb 2025 20:28:41 -0300 Subject: [PATCH] Don't update current hub if the map is not unlocked --- src/p_setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_setup.c b/src/p_setup.c index 31c621acb4..36d7d48d28 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -7853,8 +7853,8 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate) maptol = mapheaderinfo[gamemap-1]->typeoflevel; gametyperules = gametypedefaultrules[gametype]; - // Set the current hub map - if (maptol & TOL_HUB) + // Set the current hub map if it was unlocked + if ((maptol & TOL_HUB) && !M_MapLocked(gamemap, serverGamedata)) currenthubmap = gamemap; // clear the target on map change, since the object will be invalidated -- GitLab