Skip to content
Snippets Groups Projects
Commit 998f7de6 authored by sphere's avatar sphere
Browse files

Merge branch 'fix-crash-2pai-bot' into 'next'

Fix crash when spawning a BOT_2PAI on a dedicated server

See merge request STJr/SRB2!2409
parents bba2eed0 2b9cfa82
Branches
Tags
1 merge request!2409Fix crash when spawning a BOT_2PAI on a dedicated server
Pipeline #4302 canceled
...@@ -387,7 +387,8 @@ void B_BuildTiccmd(player_t *player, ticcmd_t *cmd) ...@@ -387,7 +387,8 @@ void B_BuildTiccmd(player_t *player, ticcmd_t *cmd)
} }
// Bot AI isn't programmed in analog. // 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 // Let Lua scripts build ticcmds
if (LUA_HookTiccmd(player, cmd, HOOK(BotTiccmd))) if (LUA_HookTiccmd(player, cmd, HOOK(BotTiccmd)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment