Skip to content

Include for TERRAIN#1381

Open
TehRealSalt wants to merge 1 commit into
UZDoom:trunkfrom
TehRealSalt:terrain-includes
Open

Include for TERRAIN#1381
TehRealSalt wants to merge 1 commit into
UZDoom:trunkfrom
TehRealSalt:terrain-includes

Conversation

@TehRealSalt
Copy link
Copy Markdown
Contributor

@TehRealSalt TehRealSalt commented May 16, 2026

Been hurting for this for a while. TERRAIN lumps are more sensitive to load order even compared to other script types, because they require blocks to be defined before referenced. This makes the multiple extensions trick even more annoying to juggle.

Uses #include as the keyword. Considered just using include, since it's technically not a preprocessor, but GLDEFS does something similar and it also is using the #.

I split off S_ResolveIncludePath into its own file because I wanted to use it and it was not specific to SNDINFO parsing at all. Lemme know if there's a better home I should bring it to.

Checklist

Been hurting for this for a while, TERRAIN lumps are sensitive to load order when you use the multiple extensions trick to have more than one
@TehRealSalt TehRealSalt added this to the 5.x milestone May 16, 2026
@github-actions
Copy link
Copy Markdown

Thanks for opening this PR! We'll review it soon.

I'm a bot that checks for some common problems. I'll update this comment with anything I find.

Nothing to report. Nice :)

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