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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user