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

@@ -39,7 +39,6 @@ void CPlayer::Init( edict_t* e , int i )
pEdict = e;
initialized = false;
ingame = false;
bot = false;
authorized = false;
current = 0;
@@ -59,7 +58,6 @@ void CPlayer::Disconnect() {
ingame = false;
initialized = false;
authorized = false;
bot = 0;
}
void CPlayer::PutInServer() {
@@ -70,7 +68,6 @@ bool CPlayer::Connect(const char* connectname,const char* ipaddress) {
name.assign(connectname);
ip.assign(ipaddress);
time = gpGlobals->time;
bot = IsBot();
death_killer = 0;
memset(flags,0,sizeof(flags));
memset(weapons,0,sizeof(weapons));