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
This commit is contained in:
sphere 2024-06-03 14:38:45 +00:00
commit 998f7de6ba

View file

@ -387,6 +387,7 @@ void B_BuildTiccmd(player_t *player, ticcmd_t *cmd)
} }
// Bot AI isn't programmed in analog. // Bot AI isn't programmed in analog.
if (!dedicated)
CV_SetValue(&cv_analog[1], false); CV_SetValue(&cv_analog[1], false);
// Let Lua scripts build ticcmds // Let Lua scripts build ticcmds