Skip to content

Commit ef78f85

Browse files
committed
Ignore xray for player_localentnum.
1 parent 1c2fffe commit ef78f85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.qc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ void(entity ent) PipResetPlayer =
235235
float(float isnew) PipNewPlayer =
236236
{
237237

238-
if (!cvar("pip_xray")) {
238+
if (self.entnum == player_localentnum || !cvar("pip_xray")) {
239239
PipResetPlayer(self);
240240
return isnew;
241241
}

0 commit comments

Comments
 (0)