Skip to content

Commit

Permalink
CBasePlayerItem: check spawnflags on Materialize()
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Aug 2, 2024
1 parent 670041d commit 16a2308
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion regamedll/dlls/weapons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,11 @@ void CBasePlayerItem::Materialize()
UTIL_SetOrigin(pev, pev->origin);
SetTouch(&CBasePlayerItem::DefaultTouch);

if (g_pGameRules->IsMultiplayer())
if (g_pGameRules->IsMultiplayer()
#ifdef REGAMEDLL_FIXES
&& g_pGameRules->WeaponShouldRespawn(this) == GR_WEAPON_RESPAWN_NO
#endif
)
{
if (!CanDrop())
{
Expand Down

0 comments on commit 16a2308

Please sign in to comment.