Changes from Ensiform:

- In G_AddBot, try to allocate clientNum before doing anything else.
- In G_AddBot, don't set SVF_BOT and inuse. It's done in ClientConnect, plus inuse causes ClientDisconnect to be run for no reason.
- In G_AddBot, only set skill in bot useinfo once.
- Avoid using cl->ps.clientNum to check if cl is a bot.
This commit is contained in:
Zack Middleton 2012-12-29 03:33:00 +00:00
parent b791040f42
commit a57a5cfd9b
2 changed files with 17 additions and 24 deletions

View file

@ -1231,7 +1231,7 @@ void CheckIntermissionExit( void ) {
if ( cl->pers.connected != CON_CONNECTED ) {
continue;
}
if ( g_entities[cl->ps.clientNum].r.svFlags & SVF_BOT ) {
if ( g_entities[i].r.svFlags & SVF_BOT ) {
continue;
}