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 committed 2012-12-29 03:33:00 +00:00
1 parent b791040f42
commit a57a5cfd9b
2 files changed
+17 -24

No files matched your search

+1 -1
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;
}