Skip to content

Commit afa4274

Browse files
committed
Fix items flashing for a frame when giving them
1 parent b82a06f commit afa4274

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dlls/player.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3245,6 +3245,7 @@ static edict_t* GiveNamedItem_Common(entvars_t* pev, const char* pszName)
32453245
ALERT(at_console, "NULL Ent in GiveNamedItem!\n");
32463246
return nullptr;
32473247
}
3248+
VARS(pent)->effects |= EF_NODRAW;
32483249
VARS(pent)->origin = pev->origin;
32493250
pent->v.spawnflags |= SF_NORESPAWN;
32503251

0 commit comments

Comments
 (0)