Skip to content

refactor(baseheightmap): Extract scorch rendering from BaseHeightMap into new W3DScorch - #3017

Open
stephanmeesters wants to merge 1 commit into
TheSuperHackers:mainfrom
stephanmeesters:refactor/scorches
Open

refactor(baseheightmap): Extract scorch rendering from BaseHeightMap into new W3DScorch#3017
stephanmeesters wants to merge 1 commit into
TheSuperHackers:mainfrom
stephanmeesters:refactor/scorches

Conversation

@stephanmeesters

Copy link
Copy Markdown
  • Extracts the scorch rendering code into its own class W3DScorch
  • Usages of the macro DO_SCORCH have mostly been removed
  • Disabling DO_SCORCH before didn't compile but this has been fixed. Scorches are now disabled using W3DScorchDummy when using DO_SCORCH=0
  • W3DScorchDummy could be used in headless mode (not part of this PR)

N.B. some code was in DO_SCORCH that didn't actually belong inside the macro, for example Real m_curImpassableSlope;

@stephanmeesters stephanmeesters added the Refactor Edits the code with insignificant behavior changes, is never user facing label Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Edits the code with insignificant behavior changes, is never user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant