From 3cf66de905ed835ad0f6770b751d97e90a383b9b Mon Sep 17 00:00:00 2001 From: Vaqtincha <51029683+Vaqtincha@users.noreply.github.com> Date: Fri, 13 Sep 2024 02:22:08 +0500 Subject: [PATCH] fix mp_kill_filled_spawn (#1011) --- regamedll/dlls/player.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index 1a895df6..c297d827 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -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 { @@ -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))) {