Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CBA_fnc_mapGridToPos off by one #1579

Merged
merged 1 commit into from
Jun 24, 2023
Merged

Fix CBA_fnc_mapGridToPos off by one #1579

merged 1 commit into from
Jun 24, 2023

Commits on Jun 22, 2023

  1. Update fnc_mapGridToPos.sqf

    With check-decrement ordering the while loops execute twice, leaving _minus at -2, then _rvOriginX/_rvOriginY get set to 0 + (abs - 2) - 1 = 1 (and get cached at GVAR(rvOriginX)/GVAR(rvOriginY)), then at line 176 said variables get subtracted from previous calculated coordinates
    artemoz committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    631f798 View commit details
    Browse the repository at this point in the history