Fixed a bug noted by mahnsawce

This commit is contained in:
David Anderson 2004-08-13 10:46:13 +00:00
parent 1efbb0f65e
commit 58f13e887c
2 changed files with 3 additions and 2 deletions

View File

@ -110,8 +110,7 @@ public:
bool Connect(const char* connectname,const char* ipaddress);
inline bool IsBot(){
const char* auth= (*g_engfuncs.pfnGetPlayerAuthId)(pEdict);
return ( auth && !strcmp( auth , "BOT" ) );
return ((pEdict->v.flags & FL_FAKECLIENT)?true:false);
}
inline bool IsAlive(){

View File

@ -628,6 +628,8 @@ const char *MNF_GetAmxScriptName(int id)
while (iter && id--)
++iter;
if ((*iter) == NULL)
return NULL;
return (*iter).getName();
}