Skip to content

Commit

Permalink
fix mp_kill_filled_spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaqtincha committed Sep 8, 2024
1 parent dc16b12 commit 9c957f1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions regamedll/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4310,10 +4310,10 @@ void CBasePlayer::PlayerUse()
}
// UNDONE: Send different USE codes for ON/OFF. Cache last ONOFF_USE object to send 'off' if you turn away
// BUGBUG This is an "off" use
else if ((m_afButtonReleased & IN_USE)
else if ((m_afButtonReleased & IN_USE)
#ifdef REGAMEDLL_FIXES
&& (caps & FCAP_ONOFF_USE))
#else
#else
&& (pObject->ObjectCaps() & FCAP_ONOFF_USE))
#endif
{
Expand Down Expand Up @@ -5374,11 +5374,6 @@ BOOL IsSpawnPointValid(CBaseEntity *pPlayer, CBaseEntity *pSpot)
if (!pSpot->IsTriggered(pPlayer))
return FALSE;

#ifdef REGAMEDLL_ADD
if (!kill_filled_spawn.value)
return TRUE;
#endif

CBaseEntity *pEntity = nullptr;
while ((pEntity = UTIL_FindEntityInSphere(pEntity, pSpot->pev->origin, MAX_PLAYER_USE_RADIUS)))
{
Expand Down

0 comments on commit 9c957f1

Please sign in to comment.