mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 04:21:23 +00:00
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:
commit
998f7de6ba
1 changed files with 2 additions and 1 deletions
|
@ -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)))
|
||||||
|
|
Loading…
Reference in a new issue