Skip to content

Commit

Permalink
Missing friendlyfire after previous commit (#805)
Browse files Browse the repository at this point in the history
* Missing friendlyfire after previous  commit
Fixes #798 issue.
  • Loading branch information
Unreal Karaulov authored Mar 31, 2023
1 parent dce06e9 commit 4a7a635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regamedll/dlls/vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ void CFuncVehicle::Blocked(CBaseEntity *pOther)
if (pOther->Classify() == CLASS_PLAYER)
{
CBasePlayer* playerOther = static_cast<CBasePlayer*>(pOther);
if (!playerDriver || g_pGameRules->PlayerRelationship(playerDriver, playerOther) == GR_TEAMMATE)
if (!playerDriver || !g_pGameRules->FPlayerCanTakeDamage(playerOther, playerDriver))
{
// Just kick player
return;
Expand Down

0 comments on commit 4a7a635

Please sign in to comment.