From c66757ca2bc7a9e839bdac65e8cd964fcb0a5c6d Mon Sep 17 00:00:00 2001 From: Hayden K Date: Mon, 7 Apr 2025 15:51:59 -0400 Subject: Fix quickreset not working on L4D1 Apartments Confusingly, the old matchmaking interface refers to No Mercy as apartments (plural), but refers to the first level as apartment (singular). Good meme. --- src/l4dmm.c | 3 ++- src/sst.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/l4dmm.c b/src/l4dmm.c index 8d831fe..bef3d8f 100644 --- a/src/l4dmm.c +++ b/src/l4dmm.c @@ -1,5 +1,6 @@ /* * Copyright © 2025 Michael Smith + * Copyright © 2025 Hayden K * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -103,7 +104,7 @@ bool l4dmm_firstmap() { "CONTEXT_L4D_LEVEL"); if (!ctxt) return 0; if (strncmp(ctxt->val, "CONTEXT_L4D_LEVEL_", 18)) return false; - return !strcmp(ctxt->val + 18, "APARTMENTS") || + return !strcmp(ctxt->val + 18, "APARTMENT") || !strcmp(ctxt->val + 18, "CAVES") || !strcmp(ctxt->val + 18, "GREENHOUSE") || !strcmp(ctxt->val + 18, "HILLTOP"); diff --git a/src/sst.c b/src/sst.c index 4021114..8749084 100644 --- a/src/sst.c +++ b/src/sst.c @@ -272,6 +272,7 @@ static bool already_loaded = false, skip_unload = false; static const char *updatenotes = "\ * Fixed the plugin crashing on game exit\n\ * Fixed a crash under Wine/Proton\n\ +* Fixed sst_l4d_quickreset in L4D1 No Mercy\n\ * Added sst_inputhud to visualise inputs in-game or in demo playback\n\ * Increased sst_mouse_factor limit from 20 to 100\n\ * sst_l4d_testwarp now performs the take-control unsticking step by default\n\ -- cgit v1.2.3-54-g00ecf