aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hayden K <imaciidz@gmail.com> 2025-04-07 15:51:59 -0400
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-04-07 21:20:59 +0100
commitc66757ca2bc7a9e839bdac65e8cd964fcb0a5c6d (patch)
tree6504f906b1023a7d3588f4fbf17b65b5f41a9085
parentc21c6e9055c9ebe7a4d6bf20210b4001a7222028 (diff)
downloadsst-c66757ca2bc7a9e839bdac65e8cd964fcb0a5c6d.tar.gz
sst-c66757ca2bc7a9e839bdac65e8cd964fcb0a5c6d.zip
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.
-rw-r--r--src/l4dmm.c3
-rw-r--r--src/sst.c1
2 files changed, 3 insertions, 1 deletions
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 <mikesmiffy128@gmail.com>
+ * Copyright © 2025 Hayden K <imaciidz@gmail.com>
*
* 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\