mirror of
https://github.com/UberGames/rpgxEF.git
synced 2024-11-13 00:24:06 +00:00
Fixed a bug that made non-admins unable to see scanables upon using the tricorder
Signed-off-by: Harry Young <hendrik.gerritzen@googlemail.com>
This commit is contained in:
parent
42e56f91e1
commit
9c17af0bcd
1 changed files with 4 additions and 3 deletions
|
@ -2635,9 +2635,10 @@ static void CG_ScanForCrosshairEntity( void ) {
|
|||
CG_Trace( &trace, start, vec3_origin, vec3_origin, end,
|
||||
cg.snap->ps.clientNum, MASK_SHOT ); //CONTENTS_SOLID|CONTENTS_BODY
|
||||
|
||||
if ( trace.entityNum >= MAX_CLIENTS && !cgs.clientinfo[cg.snap->ps.clientNum].isAdmin/*cg.predictedPlayerState.persistant[PERS_CLASS] != PC_ADMIN*/ ) {
|
||||
return;
|
||||
}
|
||||
//This was causing Scanables for non-admins to be completely unscanable. I'm not sure about the legacy, so I'm keeping this in.
|
||||
//if ( trace.entityNum >= MAX_CLIENTS && !cgs.clientinfo[cg.snap->ps.clientNum].isAdmin/*cg.predictedPlayerState.persistant[PERS_CLASS] != PC_ADMIN*/ ) {
|
||||
// return;
|
||||
//}
|
||||
|
||||
// if the player is in fog, don't show it
|
||||
int32_t content = trap_CM_PointContents( trace.endpos, 0 );
|
||||
|
|
Loading…
Reference in a new issue