Skip to content

Fix(logic): comparison napalm lag filter#22

Merged
Rushaway merged 1 commit into
masterfrom
Rushaway-patch-1
May 22, 2026
Merged

Fix(logic): comparison napalm lag filter#22
Rushaway merged 1 commit into
masterfrom
Rushaway-patch-1

Conversation

@Rushaway
Copy link
Copy Markdown
Member

Pull request description:

This PR fixes a logic bug in the napalm lag filter where a chained comparison was used to check if iEntIgnore is a valid client index. In SourcePawn, chained comparisons do not behave as mathematical inequalities, which caused the condition to always evaluate as true.

Replaces the chained comparison with a proper logical conjunction:
if (iEntIgnore >= 1 && iEntIgnore <= MaxClients)
Ensures only client-originated napalm damage is blocked
Prevents unintended suppression of other burn damage sources
This resolves incorrect damage filtering and restores intended plugin behavior.
Full details: #21

Copilot AI review requested due to automatic review settings May 22, 2026 09:59
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a SourcePawn-specific logic bug in the FixNapalmLag SourceMod plugin that incorrectly treated a chained comparison as a valid client-range check, causing over-broad suppression of burn damage.

Changes:

  • Corrected the client-index range check from a chained comparison to an explicit logical conjunction (>= 1 && <= MaxClients).
  • Bumped the plugin version from 1.0.5 to 1.0.6.

@Rushaway Rushaway merged commit 0f11356 into master May 22, 2026
7 checks passed
@Rushaway Rushaway deleted the Rushaway-patch-1 branch May 22, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants