aboutsummaryrefslogtreecommitdiff
path: root/src/l4dmm.c
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 /src/l4dmm.c
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.
Diffstat (limited to 'src/l4dmm.c')
-rw-r--r--src/l4dmm.c3
1 files changed, 2 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");