From 2b9cfa8262b73e1ec1a935ee0dc4b318c649a394 Mon Sep 17 00:00:00 2001 From: Hanicef Date: Sun, 31 Mar 2024 18:27:57 +0200 Subject: [PATCH] Fix crash when spawning a BOT_2PAI on a dedicated server --- src/b_bot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/b_bot.c b/src/b_bot.c index af57d65ec..6229cb1d6 100644 --- a/src/b_bot.c +++ b/src/b_bot.c @@ -387,7 +387,8 @@ void B_BuildTiccmd(player_t *player, ticcmd_t *cmd) } // Bot AI isn't programmed in analog. - CV_SetValue(&cv_analog[1], false); + if (!dedicated) + CV_SetValue(&cv_analog[1], false); // Let Lua scripts build ticcmds if (LUA_HookTiccmd(player, cmd, HOOK(BotTiccmd)))