summaryrefslogtreecommitdiffhomepage
path: root/src/fixes.c
diff options
context:
space:
mode:
authorHayden K <imaciidz@gmail.com>2023-04-26 19:07:12 -0400
committerMichael Smith <mikesmiffy128@gmail.com>2023-05-04 23:49:27 +0100
commitea752466846c129a0910e47d34d725af1aea5d84 (patch)
tree5af0f63f8b7b49a8d7472af1ce4c3b3330a75e0e /src/fixes.c
parent245f63c4a58b36dc46731758063c03aba2d3ec06 (diff)
Fix enabling and disabling addons in L4D1
Diffstat (limited to 'src/fixes.c')
-rw-r--r--src/fixes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fixes.c b/src/fixes.c
index a948b52..29d5ab3 100644
--- a/src/fixes.c
+++ b/src/fixes.c
@@ -174,6 +174,11 @@ static void l4d1specific(void) {
// same thing as above, seemed easier to just dupe :)
chcmdflags("cl_fullupdate", CON_CHEAT, 0);
+
+ // These commands lack CLIENTCMD_CAN_EXECUTE, so enabling/disabling addons
+ // doesn't work without manually running these in the console afterwards.
+ chcmdflags("mission_reload", 0, CON_CCMDEXEC);
+ chcmdflags("update_addon_paths", 0, CON_CCMDEXEC);
}
void fixes_apply(void) {