Skip to content

fix: restore manual aiming across z-levels#9788

Merged
chaosvolt merged 2 commits into
cataclysmbn:mainfrom
tehkab:fix-restore-aiming-zlevels
Jul 3, 2026
Merged

fix: restore manual aiming across z-levels#9788
chaosvolt merged 2 commits into
cataclysmbn:mainfrom
tehkab:fix-restore-aiming-zlevels

Conversation

@tehkab

@tehkab tehkab commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Purpose of change (The Why)

The ability to manually aim ranged weapons across z-levels with >/< disappeared, seemingly unintentionally in #9543 .

Describe the solution (The How)

Fully remove never-set variable allow_zlevel_shift and checks for it that prevented manual z-level aiming. This was previously set based on the z-levels option, but that option was removed in #9543 and the variable remained still checked (and thus could never be true). This seemed unintentional and broke manual aiming across z-levels.

Describe alternatives you've considered

None

Testing

Verified ability to aim ranged weapons across z-levels again as it previously worked.

Additional context

There remains some jank with ranged weapons across z-levels out of the scope of this particular issue, such as being able to poke with reach melee weapons through the roof (made easy with clairvoyance but not required if you poke blindly); or the aiming indicator not making sense when the aim crosses z-levels. Separate issues with separate fixes :)

Checklist

Mandatory

Optional

n/a

Build Artifacts

PR build for commit 961a6d0 (Merge remote-tracking branch 'upstream/main' into pr/9788) on 2026-07-03 19:55:03

Fully remove never-set variable and checks for it that prevented
manual z-level aiming. This was previously set based on the z-levels
option, but that option was removed in cataclysmbn#9543 and the variable remained
still checked (and thus could never be true). This seemed unintentional
and broke manual aiming across z-levels.
@github-actions github-actions Bot added the src changes related to source code. label Jul 3, 2026
@dedmemdev dedmemdev changed the title (fix) Restore manual aiming across z-levels fix: Restore manual aiming across z-levels Jul 3, 2026
@dedmemdev dedmemdev changed the title fix: Restore manual aiming across z-levels fix: restore manual aiming across z-levels Jul 3, 2026
@chaosvolt chaosvolt merged commit 0ac456b into cataclysmbn:main Jul 3, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

src changes related to source code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants