Skip to content

Conversation

@seer-by-sentry
Copy link

Fixes CLIENT-2AM. The issue was that: Radar's worldToRadar divides by zero m_xSample or m_ySample when map extent width/height is zero.

  • Added checks to ensure radar sample rates (m_xSample, m_ySample) are not zero or negative, defaulting them to 1.0f if invalid.
  • Implemented early return conditions in Radar::GetRadarHeight and Radar::GetRadarColor if sample rates are found to be invalid (less than or equal to 0.0f).
  • Prevents potential division by zero errors and crashes when processing radar data for maps with invalid or zero dimensions.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 8443235

Not quite right? Click here to continue debugging with Seer.

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.

0 participants