Removed bot member variable from CPlayer; instead, everything now calls the inline IsBot() function.

Hopefully that will fix the "bot bug"
This commit is contained in:
Pavol Marko
2004-12-22 13:01:55 +00:00
parent 21ceae3c9e
commit e986848faf
4 changed files with 8 additions and 12 deletions

View File

@ -524,7 +524,7 @@ void C_ServerDeactivate_Post() {
BOOL C_ClientConnect_Post( edict_t *pEntity, const char *pszName, const char *pszAddress, char szRejectReason[ 128 ] ){
CPlayer* pPlayer = GET_PLAYER_POINTER(pEntity);
if (!pPlayer->bot) {
if (!pPlayer->IsBot()) {
bool a = pPlayer->Connect(pszName,pszAddress);
@ -556,7 +556,7 @@ void C_ClientDisconnect( edict_t *pEntity ) {
void C_ClientPutInServer_Post( edict_t *pEntity ) {
CPlayer *pPlayer = GET_PLAYER_POINTER(pEntity);
if (!pPlayer->bot) {
if (!pPlayer->IsBot()) {
pPlayer->PutInServer();
++g_players_num;