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:
1 parent
b791040f42
commit
a57a5cfd9b
2 files changed
+17
-24
No files matched your search
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user