Fix crash when spawning a BOT_2PAI on a dedicated server

This commit is contained in:
Hanicef 2024-03-31 18:27:57 +02:00
parent 8647281a51
commit 2b9cfa8262

View file

@ -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)))