Skip to content

Commit

Permalink
Fix items flashing for a frame when giving them
Browse files Browse the repository at this point in the history
  • Loading branch information
L-P committed Jan 15, 2024
1 parent b82a06f commit afa4274
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3245,6 +3245,7 @@ static edict_t* GiveNamedItem_Common(entvars_t* pev, const char* pszName)
ALERT(at_console, "NULL Ent in GiveNamedItem!\n");
return nullptr;
}
VARS(pent)->effects |= EF_NODRAW;
VARS(pent)->origin = pev->origin;
pent->v.spawnflags |= SF_NORESPAWN;

Expand Down

0 comments on commit afa4274

Please sign in to comment.