Skip to content

Add MapCache::propagateVerticalFlags - #5970

Merged
ab9rf merged 1 commit into
DFHack:developfrom
ab9rf:mapcache-propagate-vertical-flags
Sep 25, 2026
Merged

ab9rf merged 1 commit into
DFHack:developfrom
ab9rf:mapcache-propagate-vertical-flags

Conversation

@ab9rf

@ab9rf ab9rf commented Sep 22, 2026

Copy link
Copy Markdown
Member

Propagate light, outside, and subterranean flags to tiles below a tile that changed between an open and a solid shape, matching how the game maintains sky exposure. Handles both directions: exposing tiles copies the changed tile's flags downward, while covering tiles clears the light/outside flags of the column below.

this is a generalization of code in dig-now that has use elsewhere - a subsequent PR will pull the use in dig-now out

Propagate light, outside, and subterranean flags to tiles below a tile
that changed between an open and a solid shape, matching how the game
maintains sky exposure. Handles both directions: exposing tiles copies
the changed tile's flags downward, while covering tiles clears the
light/outside flags of the column below.
@ab9rf
ab9rf merged commit a0d56cd into DFHack:develop Sep 25, 2026
14 checks passed
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.

1 participant