server: fix picking up ammo in alien mode

This commit is contained in:
Alibek Omarov 2024-04-04 03:13:38 +03:00
parent deb070205a
commit 266afaf76e
1 changed files with 1 additions and 1 deletions

View File

@ -1125,7 +1125,7 @@ void CBasePlayerAmmo::Materialize( void )
void CBasePlayerAmmo::DefaultTouch( CBaseEntity *pOther ) void CBasePlayerAmmo::DefaultTouch( CBaseEntity *pOther )
{ {
if( !pOther->IsPlayer() || IsPlayerBusting( pOther )) if( !pOther->IsPlayer() || IsPlayerBusting( pOther ) || g_pGameRules->IsAlienMode( ))
{ {
return; return;
} }