]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commit
Make bots observers (for one frame) before joining the game and put them in a team...
authorterencehill <piuntn@gmail.com>
Thu, 12 May 2022 00:48:56 +0000 (02:48 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 12 May 2022 00:48:56 +0000 (02:48 +0200)
commit12e3e2cb5f9d8cdd821a97894223fde2f5e2f816
treec48c48dec76f4bca870805b842231e091269abc4
parent9528dc8bdc7b4382c344598e88c49abeefa69b93
Make bots observers (for one frame) before joining the game and put them in a team in PutPlayerInServer so that everything gets initialized in the same way as for human players.

It fixes a bug where bots connecting in the middle of a CA round join a team (with a message announcing it) and immediately leave it because joining a team is not allowed.
qcsrc/server/bot/default/bot.qc
qcsrc/server/client.qc