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 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/l4dmm.c') 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"); -- cgit v1.2.3-54-g00ecf