Skip to content

Commit

Permalink
CBasePlayerItem: Add Respawn() item when hasn't specific spawnflags
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Aug 2, 2024
1 parent 16a2308 commit d2071ab
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 @@ -559,8 +559,12 @@ void CBasePlayerItem::CheckRespawn()
{
switch (g_pGameRules->WeaponShouldRespawn(this))
{
case GR_WEAPON_RESPAWN_YES:
case GR_WEAPON_RESPAWN_YES: {
#ifdef REGAMEDLL_FIXES
Respawn();
#endif
return;
}
case GR_WEAPON_RESPAWN_NO:
return;
}
Expand Down

0 comments on commit d2071ab

Please sign in to comment.