Cleanup g_cmds.c

This commit is contained in:
Walter Julius Hennecke 2012-11-11 22:41:22 +01:00
parent 69335bc840
commit bc1558b36c
2 changed files with 813 additions and 1316 deletions

View file

@ -2405,3 +2405,35 @@ void ClientDisconnect( int clientNum ) {
clientInitialStatus[clientNum].initialized = qfalse;
}
/*
================
IsAdmin
RPG-X | Phenix | 21/11/2004
================
*/
/**
* Checks if player is an admin.
* \param ent the player
*
* \author Ubergames - Phenix
* \date 21/11/2004
*/
qboolean IsAdmin( gentity_t *ent)
{
if ( !ent )
return qfalse;
if ( !ent->client )
return qfalse;
if (( g_classData[ent->client->sess.sessionClass].isAdmin ) ||
( ent->client->LoggedAsAdmin == qtrue ) ||
( ent->client->LoggedAsDeveloper == qtrue )
) {
return qtrue;
} else {
return qfalse;
}
}

File diff suppressed because it is too large Load diff