Skip to content

SA Aspect Ratio Fixes v1.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 19 Aug 17:51
· 2 commits to main since this release
  • Fixed the fill that covers the bands beside a narrowed sniper scope not
    being drawn under a HUD replacement. It hung on the call to
    CHud::DrawCrossHairs inside CHud::Draw, and a plugin that redirects
    CHud::Draw at its prologue never runs the original body, so the hook was
    written and never reached while the replacement called DrawCrossHairs
    itself. CHud::DrawCrossHairs is hooked at its own entry now, which every
    caller goes through.
  • Fixed hideCameraHud and hideSniperHud doing nothing when another plugin
    owns CHud::Draw. SAMPFUNCS takes its prologue for an overlay, and declining
    was correct, but an overlay that hooks a prologue reaches the body through a
    trampoline of its own, so the body still runs every frame. The entry is used
    when it is free and the body when it is not. Which one applied is named in
    the log.
  • Fixed the sniper fill reading the reticle's scale factor rather than the
    scope's. The two are equal while both corrections are on, so this was only
    reachable with roundCrosshair=0 and roundScope=1, where the fill was
    sized for a reticle that is not on screen.
  • Removed worldSprites.targetingMeasurements from the shipped INI. It is the
    one key that changes how the game plays rather than how it looks, its effect
    has never been measured, and it carried the last warning comment in the file.
    It is still read, so it can be added by hand.

Verifying the download

The archive was built by GitHub Actions from tag v1.1.0. Compare it with the published SHA-256 file or verify its signed build provenance:

gh attestation verify AspectRatioFixes-v1.1.0.zip -R sonochiwa/sa-aspect-ratio-fixes